From: KO Myung-Hun Date: Thu, 17 Jan 2019 18:40:26 +0000 (+0100) Subject: sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC. X-Git-Tag: v1.0~5157 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=eac1759212645ae2425bbe99084590ba8d974101;p=gnulib.git sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC. * lib/sys_stat.in.h [kLIBC]: Include . --- diff --git a/ChangeLog b/ChangeLog index 61f5de6dba..4e5f40c838 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-01-17 KO Myung-Hun + + sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC. + * lib/sys_stat.in.h [kLIBC]: Include . + 2019-01-17 KO Myung-Hun fcntl: Fix syntax error (regression from 2018-10-05). diff --git a/lib/sys_stat.in.h b/lib/sys_stat.in.h index 9658dcf0b6..c847344012 100644 --- a/lib/sys_stat.in.h +++ b/lib/sys_stat.in.h @@ -54,9 +54,16 @@ /* The definition of _GL_WARN_ON_USE is copied here. */ +/* Before doing "#define mknod rpl_mknod" below, we need to include all + headers that may declare mknod(). OS/2 kLIBC declares mknod() in + , not in . */ +#ifdef __KLIBC__ +# include +#endif + /* Before doing "#define mkdir rpl_mkdir" below, we need to include all headers that may declare mkdir(). Native Windows platforms declare mkdir - in and/or , not in . */ + in and/or , not in . */ #if defined _WIN32 && ! defined __CYGWIN__ # include /* mingw32, mingw64 */ # include /* mingw64, MSVC 9 */