From 44012ae879e809ad1f75e6c69712619cefaa4add Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Sat, 18 May 2019 18:18:53 +1000 Subject: [PATCH] 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 --- pppd/plugins/rp-pppoe/pppoe.h | 4 ---- 1 file changed, 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 /* For FILE */ #include /* For pid_t */ -- 2.39.2