Skip to content

Commit

Permalink
pppoe: Remove the use of cdefs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kurt-vd authored and paulusmack committed Oct 1, 2019
1 parent d8e8d7a commit 3202f89
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions pppd/plugins/rp-pppoe/config.h
Expand Up @@ -101,9 +101,6 @@
/* 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 */

Expand Down
4 changes: 0 additions & 4 deletions pppd/plugins/rp-pppoe/pppoe.h
Expand Up @@ -39,10 +39,6 @@
#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
Expand Down

0 comments on commit 3202f89

Please sign in to comment.