freebsd-ports/devel/linux_kdump/files/patch-mkioctls.linux
Marcel Moolenaar b84a143480 On FreeBSD 4, gcc(1) does not have the __builtin_va_list type, which
breaks the build of linux_ioctl.c because it contains Linux header
contents. Since we do not depend on stdargs, add a define to replace
__builtin_va_list with int when running the Linux compiler to generate
linux_ioctl.c. This fixes the port on FreeBSD 4.
2004-02-21 23:46:43 +00:00

11 lines
321 B
Text

--- mkioctls.linux.orig Sat Feb 21 15:35:48 2004
+++ mkioctls.linux Sat Feb 21 15:34:41 2004
@@ -4,7 +4,7 @@
TMP2FILE=/tmp/$$b.c
OUTFILE=linux_ioctl.c
-CPP="/compat/linux/usr/bin/gcc -E"
+CPP="/compat/linux/usr/bin/gcc -E -D__builtin_va_list=int"
(echo "#include <sys/ioctl.h>"
echo "#include <sys/soundcard.h>"