about summary refs log tree commit diff
path: root/include/unistd.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-03-10 18:02:05 -0500
committerRich Felker <dalias@aerifal.cx>2018-03-10 18:19:40 -0500
commita3f7bcdeaa4cbf8258824b6be4f231ca54a7fdfc (patch)
treeea40d5d765c2d5dbd033659906dba37445886d81 /include/unistd.h
parentd93c0740d86aaf7043e79b942a6c0b3f576af4c8 (diff)
downloadmusl-a3f7bcdeaa4cbf8258824b6be4f231ca54a7fdfc.tar.gz
musl-a3f7bcdeaa4cbf8258824b6be4f231ca54a7fdfc.tar.xz
musl-a3f7bcdeaa4cbf8258824b6be4f231ca54a7fdfc.zip
fix minor namespace issue in unistd.h
the F_* macros associated with the lockf function are XSI-shaded (like
the lockf function itself) and should only be exposed when the
function is.
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/unistd.h b/include/unistd.h
index c17eace9..9485da7a 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -128,12 +128,11 @@ long fpathconf(int, int);
 long sysconf(int);
 size_t confstr(int, char *, size_t);
 
+#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
 #define F_ULOCK 0
 #define F_LOCK  1
 #define F_TLOCK 2
 #define F_TEST  3
-
-#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
 int setreuid(uid_t, uid_t);
 int setregid(gid_t, gid_t);
 int lockf(int, int, off_t);