summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-11-22 02:56:13 +0000
committerMike Frysinger <vapier@gentoo.org>2010-11-22 02:56:13 +0000
commit17027cf65b76d3e6abc664259b945d248833e9db (patch)
treed193b5f469ea2a0501451da308322c07d20d13b9 /net-dialup/rp-pppoe/files
parentAutomated update of use.local.desc (diff)
downloadgentoo-2-17027cf65b76d3e6abc664259b945d248833e9db.tar.gz
gentoo-2-17027cf65b76d3e6abc664259b945d248833e9db.tar.bz2
gentoo-2-17027cf65b76d3e6abc664259b945d248833e9db.zip
Fix building with linux-headers-2.6.35 #334197, and fix missing SA_RESTART build error.
(Portage version: 2.2.0_alpha4/cvs/Linux x86_64)
Diffstat (limited to 'net-dialup/rp-pppoe/files')
-rw-r--r--net-dialup/rp-pppoe/files/rp-pppoe-3.10-posix-source-sigaction.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/net-dialup/rp-pppoe/files/rp-pppoe-3.10-posix-source-sigaction.patch b/net-dialup/rp-pppoe/files/rp-pppoe-3.10-posix-source-sigaction.patch
new file mode 100644
index 000000000000..bd19170a99c5
--- /dev/null
+++ b/net-dialup/rp-pppoe/files/rp-pppoe-3.10-posix-source-sigaction.patch
@@ -0,0 +1,18 @@
+glibc does not define SA_RESTART when _POSIX_SOURCE is defined, so we
+have to just assume the default signal.h include defines SA_RESTART
+
+http://sourceware.org/bugzilla/show_bug.cgi?id=12252
+
+--- rp-pppoe-3.10/src/pppoe.h
++++ rp-pppoe-3.10/src/pppoe.h
+@@ -19,10 +19,6 @@
+
+ extern int IsSetID;
+
+-#if defined(HAVE_NETPACKET_PACKET_H) || defined(HAVE_LINUX_IF_PACKET_H)
+-#define _POSIX_SOURCE 1 /* For sigaction defines */
+-#endif
+-
+ #include <stdio.h> /* For FILE */
+ #include <sys/types.h> /* For pid_t */
+