about summary refs log tree commit diff
path: root/include/sys/stat.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2016-10-20 17:20:01 -0400
committerRich Felker <dalias@aerifal.cx>2016-10-20 17:20:01 -0400
commit7597fc25a2743d49500926a286da71f8e033936c (patch)
tree25f902fe91240235623e6fde718f285d16b518aa /include/sys/stat.h
parent2ed4e9d9279117ffa50294095e172804cd1b68e5 (diff)
downloadmusl-7597fc25a2743d49500926a286da71f8e033936c.tar.gz
musl-7597fc25a2743d49500926a286da71f8e033936c.tar.xz
musl-7597fc25a2743d49500926a286da71f8e033936c.zip
fix various header namespace issues under feature-test-macro control
reported and changes suggested by Daniel Sabogal.
Diffstat (limited to 'include/sys/stat.h')
-rw-r--r--include/sys/stat.h7
1 files changed, 5 insertions, 2 deletions
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);