903-fcntl64_fix.patch 782 B

1234567891011121314151617181920212223242526
  1. 64 bit targets often don't have a separate fcntl64() system call, because they don't need one.
  2. Signed-off-by: Rob Landley <rob at landley.net>
  3. --- uClibc/include/fcntl.h 2010-04-02 10:34:27.000000000 -0500
  4. +++ uClibc.bak/include/fcntl.h 2010-05-16 04:54:10.000000000 -0500
  5. @@ -73,7 +73,7 @@
  6. This function is a cancellation point and therefore not marked with
  7. __THROW. */
  8. -#ifndef __USE_FILE_OFFSET64
  9. +#if !defined(__USE_FILE_OFFSET64) || defined(__LP64__)
  10. extern int fcntl (int __fd, int __cmd, ...);
  11. libc_hidden_proto(fcntl)
  12. #else
  13. @@ -83,7 +83,7 @@
  14. # define fcntl fcntl64
  15. # endif
  16. #endif
  17. -#ifdef __USE_LARGEFILE64
  18. +#if defined(__USE_LARGEFILE64) && !defined(__LP64__)
  19. extern int fcntl64 (int __fd, int __cmd, ...);
  20. libc_hidden_proto(fcntl64)
  21. #endif
  22. --