lftp_sys-stdint-kfreebsd.patch 632 B

12345678910111213141516171819
  1. Description: prevent sys/_stdint.h from redefining intptr_t et.al.
  2. Author: Andreas Henriksson <andreas@fatal.se>
  3. Bug-Debian: http://bugs.debian.org/677861
  4. Forwarded: no
  5. --- lftp-4.3.6.orig/lib/stdint.in.h
  6. +++ lftp-4.3.6/lib/stdint.in.h
  7. @@ -75,6 +75,10 @@
  8. _@GUARD_PREFIX@_STDINT_H is defined.
  9. The include_next requires a split double-inclusion guard. */
  10. # @INCLUDE_NEXT@ @NEXT_STDINT_H@
  11. +#ifdef __FreeBSD_kernel__
  12. +// prevent sys/_stdint.h from being included and redefine intptr_t et.al.
  13. +#define _SYS__STDINT_H_
  14. +#endif
  15. #endif
  16. #if ! defined _@GUARD_PREFIX@_STDINT_H && ! defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H