Explorar o código

provide useless 64-bit fcntl macros with _LARGEFILE64_SOURCE

this is all useless but part of the API, which is part of the
_GNU_SOURCE API, so something may need them.
Rich Felker %!s(int64=11) %!d(string=hai) anos
pai
achega
78c6d30fd3
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      include/fcntl.h

+ 3 - 0
include/fcntl.h

@@ -154,6 +154,9 @@ ssize_t tee(int, int, size_t, unsigned);
 #endif
 
 #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
+#define F_GETLK64 F_GETLK
+#define F_SETLK64 F_SETLK
+#define F_SETLKW64 F_SETLKW
 #define open64 open
 #define openat64 openat
 #define creat64 creat