Re: Bug#648246: fdm: FTBFS(kfreebsd): Unable to configure for GNU/kFreeBSD
2011/11/11 Frank Terbeck <ft@bewatermyfriend.org>:
> Fine by me. Do you happen to know whether this actually fixes the build
> on kfreebsd? If it does I'll fix the package and forward a patch
> upstream.
The rest of the blob is OK but mremap() is Linux-specific. Here's a
fixed patch (tested and known to build).
Btw, instead of shipping your own strlcat() / strlcpy() / strtonum()
you could use the ones in libbsd and save some package size.
--
Robert Millan
=== modified file 'configure'
--- configure 2011-11-11 19:58:44 +0000
+++ configure 2011-11-11 20:00:20 +0000
@@ -26,12 +26,16 @@ EOF
EOF
;;
# ------------------------------------------------------------------------------
- Linux)
+ Linux|GNU|GNU/*)
cat <<EOF >>$CONFIG_H
#define HAVE_SETRESUID
#define HAVE_SETRESGID
+EOF
+ if [ $FDM_PLATFORM = Linux ] ; then
+ cat << EOF >>$CONFIG_H
#define HAVE_MREMAP
EOF
+ fi
cat <<EOF >>$CONFIG_MK
SRCS+= compat/strlcat.c \
compat/strlcpy.c \
Reply to: