From 70c77c76593cf292a713f7315f73bff175de6505 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Fri, 30 Jun 2006 04:20:00 +0000 Subject: [PATCH] * stat_.h (rpl_mkdir): Declare inline, to avoid warnings about unused static function. --- lib/ChangeLog | 5 +++++ lib/stat_.h | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index 64b977e5ee..c01d0f790e 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2006-06-29 Eric Blake + + * stat_.h (rpl_mkdir): Declare inline, to avoid warnings about + unused static function. + 2006-06-29 Eric Blake * stat_.h: New file. diff --git a/lib/stat_.h b/lib/stat_.h index 7f290cefa8..d2e0796d36 100644 --- a/lib/stat_.h +++ b/lib/stat_.h @@ -35,7 +35,13 @@ alias mkdir), only in the nonstandard io.h. */ #if ! HAVE_DECL_MKDIR && HAVE_IO_H # include -static int rpl_mkdir (char const *name, mode_t mode) { return _mkdir (name); } + +static inline int +rpl_mkdir (char const *name, mode_t mode) +{ + return _mkdir (name); +} + # define mkdir rpl_mkdir #endif -- 2.30.2