diff options
| author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-11-17 18:03:46 +0000 |
|---|---|---|
| committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-11-17 18:03:46 +0000 |
| commit | 892cc11771a53d7ee30c5334ca2bda56fd6e6c8b (patch) | |
| tree | 3f3bf7d31525b64c671faf04cd468c3c84635f00 /libc/inet/netlinkaccess.h | |
| parent | 5d96ee84a344a55682848b1338b9bcd0618e341b (diff) | |
| download | uClibc-alpine-892cc11771a53d7ee30c5334ca2bda56fd6e6c8b.tar.bz2 uClibc-alpine-892cc11771a53d7ee30c5334ca2bda56fd6e6c8b.tar.xz | |
Synch with trunk @ 24075.
Step 9: libc/stdio - libc/inet - libc/pwd_grp
Diffstat (limited to 'libc/inet/netlinkaccess.h')
| -rw-r--r-- | libc/inet/netlinkaccess.h | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/libc/inet/netlinkaccess.h b/libc/inet/netlinkaccess.h index acadcb544..5111d3802 100644 --- a/libc/inet/netlinkaccess.h +++ b/libc/inet/netlinkaccess.h @@ -24,6 +24,7 @@ #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; @@ -33,16 +34,6 @@ typedef int32_t __s32; #include <linux/rtnetlink.h> #include <linux/netlink.h> -/* Should prob be a configure option or something */ -#ifndef __ASSUME_NETLINK_SUPPORT -#ifdef __UCLIBC_USE_NETLINK__ -# define __ASSUME_NETLINK_SUPPORT 1 -#else -# define __ASSUME_NETLINK_SUPPORT 0 -#endif -#endif - - struct netlink_res { struct netlink_res *next; @@ -62,19 +53,17 @@ struct netlink_handle }; -#ifdef __UCLIBC_SUPPORT_AI_ADDRCONFIG__ -#if __ASSUME_NETLINK_SUPPORT == 0 -extern smallint __no_netlink_support attribute_hidden; -#else -# define __no_netlink_support 0 +#ifndef __ASSUME_NETLINK_SUPPORT +#define __ASSUME_NETLINK_SUPPORT 1 #endif -#endif /* __UCLIBC_SUPPORT_AI_ADDRCONFIG__ */ - extern int __netlink_open (struct netlink_handle *h) attribute_hidden; 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 +#define __ASSUME_NETLINK_SUPPORT 0 +#endif -#endif /* netlinkaccess.h */ +#endif /* _NETLINKACCESS_H */ |
