[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#677861: lftp: FTBFS[kfreebsd-i386]: error: conflicting declaration 'typedef __int32_t gl_intptr_t'



tags 677861 patch
thanks

On Mon, Nov 26, 2012 at 08:22:24PM +0100, Cyril Brulebois wrote:
[...]
> Installed in fischer's sid chroot.

Thanks. The attached patch works around the issue on kFreeBSD.
Build tested in the sid chroot on fischer.debian.org.

Hopefully kFreeBSD porters or package maintainers can now pick
this up and discuss a suitable long term solution for gnulib
on kFreeBSD with gnulib upstream?!

-- 
Andreas Henriksson
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

Attachment: signature.asc
Description: Digital signature


Reply to: