aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-01-22 20:28:25 (GMT)
committerJouni Malinen <j@w1.fi>2016-02-07 16:09:19 (GMT)
commitf9982b3212228f687f828bd201aa266056aa20f7 (patch)
treec8dab4ce6fa711459724da596ef28048930175a2 /hostapd
parent2e69bdd16ac1c4c6a974e588f41aa954f05f1487 (diff)
downloadhostap-f9982b3212228f687f828bd201aa266056aa20f7.zip
hostap-f9982b3212228f687f828bd201aa266056aa20f7.tar.gz
hostap-f9982b3212228f687f828bd201aa266056aa20f7.tar.bz2
Implement kqueue(2) support via CONFIG_ELOOP_KQUEUE
NOTE: kqueue has to be closed and re-build after forking. epoll *should* do the same, but it seems that wpa_supplicant doesn't need it at least. I have re-worked a little bit of the epoll code (moved into a similar kqueue function) so it's trivial to requeue epoll if needed in the future. Signed-off-by: Roy Marples <roy@marples.name>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/hostapd/Makefile b/hostapd/Makefile
index 45afedf..fd3105e 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -140,6 +140,10 @@ ifdef CONFIG_ELOOP_EPOLL
CFLAGS += -DCONFIG_ELOOP_EPOLL
endif
+ifdef CONFIG_ELOOP_KQUEUE
+CFLAGS += -DCONFIG_ELOOP_KQUEUE
+endif
+
OBJS += ../src/utils/common.o
OBJS_c += ../src/utils/common.o
OBJS += ../src/utils/wpa_debug.o