mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
rp-pppoe: Fixed compilation with glibc
Do not inlcude <netinet/in.h> when using glibc to avoid various redefinitions. Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
--- a/src/pppoe.h
|
||||
+++ b/src/pppoe.h
|
||||
@@ -131,7 +131,9 @@ typedef unsigned long UINT32_t;
|
||||
#include <linux/if_ether.h>
|
||||
#endif
|
||||
|
||||
+#ifndef __GLIBC__
|
||||
#include <netinet/in.h>
|
||||
+#endif
|
||||
|
||||
#ifdef HAVE_NETINET_IF_ETHER_H
|
||||
#include <sys/types.h>
|
||||
Reference in New Issue
Block a user