diff options
author | Sergey Senozhatsky <sergey.senozhatsky@gmail.com> | 2012-04-27 17:10:39 +0300 |
---|---|---|
committer | Chris E Ferron <chris.e.ferron@linux.intel.com> | 2012-04-27 09:41:22 -0700 |
commit | 08d2a549c45af4b08cc75174d07db96121aa2572 (patch) | |
tree | f722563193b32b1137ac220adc0ef4e3d0d1839a /src/tuning | |
parent | 110fbd9017727e0cd429e6abbcdca7fa9ceb861e (diff) |
iw: include generated config.h file (v2)
iw: include generated config.h file
Include generated "config.h" file in order to handle LIBNL define.
Rename CONFIG_LIBNL20 to HAVE_LIBNL20.
Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Diffstat (limited to 'src/tuning')
-rw-r--r-- | src/tuning/iw.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tuning/iw.c b/src/tuning/iw.c index 8e1bbcf..36abc00 100644 --- a/src/tuning/iw.c +++ b/src/tuning/iw.c @@ -45,13 +45,16 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include <netlink/msg.h> #include <netlink/attr.h> +#if HAVE_CONFIG_H +#include "config.h" +#endif #include "nl80211.h" #include <asm/errno.h> #include <linux/genetlink.h> #include "iw.h" -#ifndef CONFIG_LIBNL20 +#ifndef HAVE_LIBNL20 /* libnl 2.0 compatibility code */ static inline struct nl_handle *nl_socket_alloc(void) @@ -73,7 +76,7 @@ static inline int __genl_ctrl_alloc_cache(struct nl_sock *h, struct nl_cache **c return 0; } #define genl_ctrl_alloc_cache __genl_ctrl_alloc_cache -#endif /* CONFIG_LIBNL20 */ +#endif /* HAVE_LIBNL20 */ static int nl80211_init(struct nl80211_state *state) |