From: Paul Mackerras Date: Sat, 18 May 2019 08:18:53 +0000 (+1000) Subject: plugins/rp-pppoe: Fix compile errors X-Git-Tag: ppp-2.4.8~28 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=44012ae879e809ad1f75e6c69712619cefaa4add 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 --- 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 /* For FILE */ #include /* For pid_t */