From eac1759212645ae2425bbe99084590ba8d974101 Mon Sep 17 00:00:00 2001 From: KO Myung-Hun Date: Thu, 17 Jan 2019 19:40:26 +0100 Subject: [PATCH] sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC. * lib/sys_stat.in.h [kLIBC]: Include . --- ChangeLog | 5 +++++ lib/sys_stat.in.h | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) 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 */ -- 2.39.5