summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2019-05-18 18:18:53 +1000
committerPaul Mackerras <paulus@samba.org>2019-05-18 18:22:08 +1000
commit44012ae879e809ad1f75e6c69712619cefaa4add (patch)
tree975b9b09158c2a065a30d2d3dfd675373c1ecd85
parentfcb076c2b24bd8dd73f4be7a9e1712d3a352a376 (diff)
downloadppp-44012ae879e809ad1f75e6c69712619cefaa4add.tar.gz
plugins/rp-pppoe: Fix compile errors
This fixes compile errors introduced in commit fcb076c ("Various fixes for errors found by coverity static analysis (#109)", 2019-05-06). Including pppd.h gave errors on some systems (e.g. recent Debian and Ubuntu) regarding the type 'u_char' being undefined. To fix this, we simply take out the lines that define _POSIX_SOURCE. Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r--pppd/plugins/rp-pppoe/pppoe.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/pppd/plugins/rp-pppoe/pppoe.h b/pppd/plugins/rp-pppoe/pppoe.h
index 8c4b8f7..20318cb 100644
--- a/pppd/plugins/rp-pppoe/pppoe.h
+++ b/pppd/plugins/rp-pppoe/pppoe.h
@@ -15,10 +15,6 @@
#include "config.h"
-#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 */