From 8ef19c64e518a71ae0fae3eda0db9866c4a00e22 Mon Sep 17 00:00:00 2001 From: = <=> Date: Mon, 27 Nov 2023 16:42:03 +0100 Subject: [PATCH] prepare BPF high level compiler --- Makefile | 5 ++++- include/radiotap.h | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7c28dca65..98b30ac81 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,10 @@ CFLAGS ?= -O3 -Wall -Wextra -Wpedantic CFLAGS += -std=gnu99 #CFLAGS += -ggdb -fsanitize=address DEFS = -DVERSION_TAG=\"$(VERSION_TAG)\" -DVERSION_YEAR=\"$(VERSION_YEAR)\" -DEFS += -DSTATUSOUT -DNMEAOUT +# comment to disable GPS support +DEFS += -DNMEAOUT +# comment to disable STATUS display (headless operation) +DEFS += -DSTATUSOUT INSTALL ?= install INSTFLAGS = diff --git a/include/radiotap.h b/include/radiotap.h index 7597b7462..eba5ec9fc 100644 --- a/include/radiotap.h +++ b/include/radiotap.h @@ -1,5 +1,7 @@ /*===========================================================================*/ +#ifndef DLT_IEEE802_11_RADIO #define DLT_IEEE802_11_RADIO 127 +#endif /*===========================================================================*/ #define IEEE80211_RADIOTAP_TSFT 0x00000001 #define IEEE80211_RADIOTAP_FLAGS 0x00000002