+2019-01-17 KO Myung-Hun <komh78@gmail.com>
+
+ sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
+ * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
+
2019-01-17 KO Myung-Hun <komh78@gmail.com>
fcntl: Fix syntax error (regression from 2018-10-05).
/* 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
+ <unistd.h>, not in <sys/stat.h>. */
+#ifdef __KLIBC__
+# include <unistd.h>
+#endif
+
/* Before doing "#define mkdir rpl_mkdir" below, we need to include all
headers that may declare mkdir(). Native Windows platforms declare mkdir
- in <io.h> and/or <direct.h>, not in <unistd.h>. */
+ in <io.h> and/or <direct.h>, not in <sys/stat.h>. */
#if defined _WIN32 && ! defined __CYGWIN__
# include <io.h> /* mingw32, mingw64 */
# include <direct.h> /* mingw64, MSVC 9 */