OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.8 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../uclibc/uClibc-0.9.31-fix-fcntl64-for-64-bit-targets.patch
  5. # Copyright (C) 2010 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From 6f1daaaf2d94c1e6184add44eda38b0781b88cf0 Mon Sep 17 00:00:00 2001
  17. From: Rob Landley <rob@landley.net>
  18. Date: Sun, 16 May 2010 21:41:36 +0000
  19. Subject: Fix fcntl64 for 64 bit targets.
  20. 64 bit targets often don't have a separate fcntl64() system call, because they don't need one.
  21. Signed-off-by: Rob Landley <rob@landley.net>
  22. Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
  23. ---
  24. diff --git a/include/fcntl.h b/include/fcntl.h
  25. index e37073f..3cfb25f 100644
  26. --- a/include/fcntl.h
  27. +++ b/include/fcntl.h
  28. @@ -73,7 +73,7 @@ __BEGIN_DECLS
  29. This function is a cancellation point and therefore not marked with
  30. __THROW. */
  31. -#ifndef __USE_FILE_OFFSET64
  32. +#if !defined(__USE_FILE_OFFSET64) || defined(__LP64__)
  33. extern int fcntl (int __fd, int __cmd, ...);
  34. libc_hidden_proto(fcntl)
  35. #else
  36. @@ -83,7 +83,7 @@ extern int __REDIRECT (fcntl, (int __fd, int __cmd, ...), fcntl64);
  37. # define fcntl fcntl64
  38. # endif
  39. #endif
  40. -#ifdef __USE_LARGEFILE64
  41. +#if defined(__USE_LARGEFILE64) && !defined(__LP64__)
  42. extern int fcntl64 (int __fd, int __cmd, ...);
  43. libc_hidden_proto(fcntl64)
  44. #endif
  45. --
  46. cgit v0.8.2.1