[libc-commits] [libc] [libc] Change fcntl cmd when only fcntl64 is available (PR #99675)

via libc-commits libc-commits at lists.llvm.org
Sat Jul 20 07:14:02 PDT 2024


================
@@ -86,17 +86,37 @@ int fcntl(int fd, int cmd, void *arg) {
     libc_errno = -ret;
     return -1;
   }
+  case F_GETLK: {
+#if defined(SYS_fcntl64)
----------------
lntue wrote:

nit `#ifdef` is fine.

https://github.com/llvm/llvm-project/pull/99675


More information about the libc-commits mailing list