File: lftp_sys-stdint-kfreebsd.patch

package info (click to toggle)
lftp 4.9.3-1.1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 17,496 kB
  • sloc: ansic: 83,392; cpp: 58,864; sh: 5,543; yacc: 1,846; makefile: 289; perl: 147; sed: 16
file content (18 lines) | stat: -rw-r--r-- 632 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: prevent sys/_stdint.h from redefining intptr_t et.al.
Author: Andreas Henriksson <andreas@fatal.se>
Bug-Debian: http://bugs.debian.org/677861
Forwarded: no

--- lftp-4.3.6.orig/lib/stdint.in.h
+++ lftp-4.3.6/lib/stdint.in.h
@@ -75,6 +75,10 @@
      _@GUARD_PREFIX@_STDINT_H is defined.
      The include_next requires a split double-inclusion guard.  */
 # @INCLUDE_NEXT@ @NEXT_STDINT_H@
+#ifdef __FreeBSD_kernel__
+// prevent sys/_stdint.h from being included and redefine intptr_t et.al.
+#define _SYS__STDINT_H_
+#endif
 #endif
 
 #if ! defined _@GUARD_PREFIX@_STDINT_H && ! defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H