diff options
author | Numeronove <marco.delellis@csfsistemi.it> | 2017-02-11 10:53:28 +0100 |
---|---|---|
committer | Numeronove <marco.delellis@csfsistemi.it> | 2017-02-11 11:04:59 +0100 |
commit | ffbe5d1e22808595d536ba63e6b74f3b4a599a5c (patch) | |
tree | a2b8171d9bfe7f4b62aaddc97673e8fbd340ea44 | |
parent | b161a6d7f797dcdd3f258c03570853d555085798 (diff) |
Easing OpenBSD build
Addedd macro AM_PROG_CC_C_O in configure.ac, needed to have autogen.sh
manage the error:
C objects in subdir but `AM_PROG_CC_C_O' not in `configure.ac'
Modified case instance in example/ndpi_util.c, since DLT_LINUX_SLL
isn't defined in OpenBSD pcap.h.
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | example/ndpi_util.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 0e46e15aa..239187360 100644 --- a/configure.ac +++ b/configure.ac @@ -7,6 +7,7 @@ AM_INIT_AUTOMAKE([foreign subdir-objects]) LT_INIT AC_PROG_CC +AM_PROG_CC_C_O AX_PTHREAD if test -d ".git"; then : diff --git a/example/ndpi_util.c b/example/ndpi_util.c index d121b5841..c1c5120ec 100644 --- a/example/ndpi_util.c +++ b/example/ndpi_util.c @@ -650,10 +650,12 @@ void ndpi_workflow_process_packet (struct ndpi_workflow * workflow, break; /* Linux Cooked Capture - 113 */ +#ifdef __linux__ case DLT_LINUX_SLL : type = (packet[eth_offset+14] << 8) + packet[eth_offset+15]; ip_offset = 16 + eth_offset; break; +#endif /* Radiotap link-layer - 127 */ case DLT_IEEE802_11_RADIO : |