aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2004-02-22 07:46:43 +0800
committermarcel <marcel@FreeBSD.org>2004-02-22 07:46:43 +0800
commit4e0e230023b96ded9e8d3baea77f4450576c066d (patch)
tree8434832ed66a8e71c4f5595db6de23a835d3bdac
parent10e0bbc79e718d4374cfbd2252b80aa58c6b3cad (diff)
downloadfreebsd-ports-gnome-4e0e230023b96ded9e8d3baea77f4450576c066d.tar.gz
freebsd-ports-gnome-4e0e230023b96ded9e8d3baea77f4450576c066d.tar.zst
freebsd-ports-gnome-4e0e230023b96ded9e8d3baea77f4450576c066d.zip
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.
-rw-r--r--devel/linux_kdump/files/patch-mkioctls.linux11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/linux_kdump/files/patch-mkioctls.linux b/devel/linux_kdump/files/patch-mkioctls.linux
new file mode 100644
index 000000000000..ed405733472f
--- /dev/null
+++ b/devel/linux_kdump/files/patch-mkioctls.linux
@@ -0,0 +1,11 @@
+--- 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>"