From 7597fc25a2743d49500926a286da71f8e033936c Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 20 Oct 2016 17:20:01 -0400 Subject: fix various header namespace issues under feature-test-macro control reported and changes suggested by Daniel Sabogal. --- include/sys/stat.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/sys/stat.h') diff --git a/include/sys/stat.h b/include/sys/stat.h index 82a64904..9d096624 100644 --- a/include/sys/stat.h +++ b/include/sys/stat.h @@ -79,12 +79,15 @@ int fchmod(int, mode_t); int fchmodat(int, const char *, mode_t, int); mode_t umask(mode_t); int mkdir(const char *, mode_t); -int mknod(const char *, mode_t, dev_t); int mkfifo(const char *, mode_t); int mkdirat(int, const char *, mode_t); -int mknodat(int, const char *, mode_t, dev_t); int mkfifoat(int, const char *, mode_t); +#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +int mknod(const char *, mode_t, dev_t); +int mknodat(int, const char *, mode_t, dev_t); +#endif + int futimens(int, const struct timespec [2]); int utimensat(int, const char *, const struct timespec [2], int); -- cgit v1.2.1