From: Jouni Malinen Date: Sat, 26 Mar 2016 09:29:53 +0000 (+0200) Subject: Drop USE_KERNEL_HEADERS define X-Git-Tag: hostap_2_6~665 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=795abc8e0a369d24d6ca80c5f998bd516918649f;p=thirdparty%2Fhostap.git Drop USE_KERNEL_HEADERS define This was only used for providing an option to use linux/if_packet.h instgead of netpacket/packet.h in src/ap/iapp.c. However, netpacket/packet.h is nowadays commonly available and hostapd already depends on it through src/l2_packet/l2_packet_linux.c, so there is no need to continue to provide this option for the kernel header. Signed-off-by: Jouni Malinen --- diff --git a/hostapd/Makefile b/hostapd/Makefile index 5b3611afe..fa4af82a5 100644 --- a/hostapd/Makefile +++ b/hostapd/Makefile @@ -27,10 +27,6 @@ CFLAGS += -I$(abspath ../src/utils) export BINDIR ?= /usr/local/bin/ -# Uncomment following line and set the path to your kernel tree include -# directory if your C library does not include all header files. -# CFLAGS += -DUSE_KERNEL_HEADERS -I/usr/src/linux/include - -include .config ifndef CONFIG_NO_GITVER diff --git a/src/ap/iapp.c b/src/ap/iapp.c index 99aa04dc3..07672ce8d 100644 --- a/src/ap/iapp.c +++ b/src/ap/iapp.c @@ -34,11 +34,7 @@ #include "utils/includes.h" #include #include -#ifdef USE_KERNEL_HEADERS -#include -#else /* USE_KERNEL_HEADERS */ #include -#endif /* USE_KERNEL_HEADERS */ #include "utils/common.h" #include "utils/eloop.h"