]> git.ozlabs.org Git - ppp.git/commitdiff
pppoe: Remove the use of cdefs
authorKurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
Mon, 30 Sep 2019 12:45:08 +0000 (14:45 +0200)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 1 Oct 2019 22:47:40 +0000 (08:47 +1000)
sys/cdefs.h contains the __P() macro.
The header doesn't exist in my musl toolchain,
the __P() macro has been obsoleted even by glibc,
and it's never used in the code.
This commit removes the need for this remainder.

Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
pppd/plugins/rp-pppoe/config.h
pppd/plugins/rp-pppoe/pppoe.h

index 570308772932773e2632e75e211695e4e9aa4637..a70885948fb8dff3075ef2f15862c41960b23ac4 100644 (file)
 /* Define if you have the <netpacket/packet.h> header file.  */
 #define HAVE_NETPACKET_PACKET_H 1
 
 /* Define if you have the <netpacket/packet.h> header file.  */
 #define HAVE_NETPACKET_PACKET_H 1
 
-/* Define if you have the <sys/cdefs.h> header file.  */
-#define HAVE_SYS_CDEFS_H 1
-
 /* Define if you have the <sys/dlpi.h> header file.  */
 /* #undef HAVE_SYS_DLPI_H */
 
 /* Define if you have the <sys/dlpi.h> header file.  */
 /* #undef HAVE_SYS_DLPI_H */
 
index b4b309fbeb04ed2c36cd08bf7aa8d0eeed95cb5c..a4e7d5cceefc5712165bfbe15b1e449fd41844e0 100644 (file)
 #error Unknown method for accessing raw Ethernet frames
 #endif
 
 #error Unknown method for accessing raw Ethernet frames
 #endif
 
-#ifdef HAVE_SYS_CDEFS_H
-#include <sys/cdefs.h>
-#endif
-
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif