From 671ffab7769b4dfd873f0c585444823a67dc56bc Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 22 May 2012 22:04:55 -0400 Subject: 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. --- include/sys/file.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/sys/file.h') 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 } -- cgit v1.2.1