mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 18:26:44 +02:00
54 lines
1.8 KiB
Diff
54 lines
1.8 KiB
Diff
--- libnl-3.11.0_rc1.orig/include/linux-private/linux/if_ether.h
|
|
+++ libnl-3.11.0_rc1/include/linux-private/linux/if_ether.h
|
|
@@ -23,6 +23,7 @@
|
|
#define _LINUX_IF_ETHER_H
|
|
|
|
#include <linux/types.h>
|
|
+#include <linux/libc-compat.h>
|
|
|
|
/*
|
|
* IEEE 802.3 Ethernet magic constants. The frame sizes omit the preamble
|
|
--- libnl-3.11.0_rc1.orig/include/linux-private/linux/libc-compat.h
|
|
+++ libnl-3.11.0_rc1/include/linux-private/linux/libc-compat.h
|
|
@@ -99,15 +99,7 @@
|
|
#define __UAPI_DEF_IN_CLASS 0
|
|
|
|
#define __UAPI_DEF_IN6_ADDR 0
|
|
-/* The exception is the in6_addr macros which must be defined
|
|
- * if the glibc code didn't define them. This guard matches
|
|
- * the guard in glibc/inet/netinet/in.h which defines the
|
|
- * additional in6_addr macros e.g. s6_addr16, and s6_addr32. */
|
|
-#if defined(__USE_MISC) || defined (__USE_GNU)
|
|
#define __UAPI_DEF_IN6_ADDR_ALT 0
|
|
-#else
|
|
-#define __UAPI_DEF_IN6_ADDR_ALT 1
|
|
-#endif
|
|
#define __UAPI_DEF_SOCKADDR_IN6 0
|
|
#define __UAPI_DEF_IPV6_MREQ 0
|
|
#define __UAPI_DEF_IPPROTO_V6 0
|
|
@@ -118,7 +110,7 @@
|
|
#else
|
|
|
|
/* Linux headers included first, and we must define everything
|
|
- * we need. The expectation is that glibc will check the
|
|
+ * we need. The expectation is that libc will check the
|
|
* __UAPI_DEF_* defines and adjust appropriately. */
|
|
#define __UAPI_DEF_IN_ADDR 1
|
|
#define __UAPI_DEF_IN_IPPROTO 1
|
|
@@ -128,7 +120,7 @@
|
|
#define __UAPI_DEF_IN_CLASS 1
|
|
|
|
#define __UAPI_DEF_IN6_ADDR 1
|
|
-/* We unconditionally define the in6_addr macros and glibc must
|
|
+/* We unconditionally define the in6_addr macros and libc must
|
|
* coordinate. */
|
|
#define __UAPI_DEF_IN6_ADDR_ALT 1
|
|
#define __UAPI_DEF_SOCKADDR_IN6 1
|
|
@@ -262,6 +254,6 @@
|
|
#define __UAPI_DEF_XATTR 1
|
|
#endif
|
|
|
|
-#endif /* __GLIBC__ */
|
|
+#endif /* defined(__KERNEL__) */
|
|
|
|
#endif /* _LIBC_COMPAT_H */
|