summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-10-20 21:29:27 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-10-20 21:29:27 +0000
commit4dbb356fb569364d2100924369802930cf65618d (patch)
treed7f9ad369697b493040408fa45bf025cacaf1e45 /libc
parent67921fdf3c8c9eeb2f026dceba3c705d808826d5 (diff)
- need to grab features before looking at eventually requested netlink support
Thanks to Peter S. Mazinger for pointing out this (obvious) error. The __ASSUME_NETLINK from ricardw's r22531 references a non-existing variable in certain cases. I don't see how that could possibly work..
Diffstat (limited to 'libc')
-rw-r--r--libc/inet/netlinkaccess.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/inet/netlinkaccess.h b/libc/inet/netlinkaccess.h
index 5201a59ff..e4e4a127b 100644
--- a/libc/inet/netlinkaccess.h
+++ b/libc/inet/netlinkaccess.h
@@ -19,13 +19,12 @@
#ifndef _NETLINKACCESS_H
#define _NETLINKACCESS_H 1
-#ifdef __UCLIBC_USE_NETLINK__
-
#include <features.h>
#include <stdint.h>
#include <unistd.h>
#include <sys/types.h>
+#if defined __ASSUME_NETLINK_SUPPORT || defined __UCLIBC_USE_NETLINK__
#define _LINUX_TYPES_H
typedef uint8_t __u8;
typedef uint16_t __u16;
@@ -60,6 +59,7 @@ struct netlink_handle
#ifdef __UCLIBC_SUPPORT_AI_ADDRCONFIG__
#if __ASSUME_NETLINK_SUPPORT == 0
+/* suspicious: This will simply not work.. */
extern smallint __no_netlink_support attribute_hidden;
#else
# define __no_netlink_support 0
@@ -72,7 +72,7 @@ extern void __netlink_close (struct netlink_handle *h) attribute_hidden;
extern void __netlink_free_handle (struct netlink_handle *h) attribute_hidden;
extern int __netlink_request (struct netlink_handle *h, int type) attribute_hidden;
-#else /* __UCLIBC_USE_NETLINK__ */
+#else
#define __ASSUME_NETLINK_SUPPORT 0
#endif