summaryrefslogtreecommitdiff
path: root/include/sys
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-05-22 22:04:55 -0400
committerRich Felker <dalias@aerifal.cx>2012-05-22 22:04:55 -0400
commit671ffab7769b4dfd873f0c585444823a67dc56bc (patch)
tree434ab7191fca83540eb6fc8262ec86902634f8ec /include/sys
parent9f370fa99e2c25a717a672ee0a766d56e9d68a9a (diff)
downloadmusl-671ffab7769b4dfd873f0c585444823a67dc56bc.tar.gz
various header cleanups, some related to _BSD_SOURCE addition
there is no reason to avoid multiple identical macro definitions; this is perfectly legal C, and even with the maximal warning options enabled, gcc does not issue any warning for it.
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/file.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/sys/file.h b/include/sys/file.h
index adb9dd52..4fc83b98 100644
--- a/include/sys/file.h
+++ b/include/sys/file.h
@@ -4,16 +4,16 @@
extern "C" {
#endif
-#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
-
#define LOCK_SH 1
#define LOCK_EX 2
#define LOCK_NB 4
#define LOCK_UN 8
-int flock(int, int);
+#define L_SET 0
+#define L_INCR 1
+#define L_XTND 2
-#endif
+int flock(int, int);
#ifdef __cplusplus
}