Skip to content

Commit

Permalink
Replace OPENBSD feature with standard __OpenBSD__
Browse files Browse the repository at this point in the history
  • Loading branch information
droe committed Sep 30, 2018
1 parent 50aa38c commit a9b7f02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,6 @@ ifneq ($(wildcard /usr/include/linux/netfilter.h),)
FEATURES+= -DHAVE_NETFILTER
endif

# Autodetect OpenBSD
ifeq ($(shell uname),OpenBSD)
FEATURES+= -DOPENBSD
endif

### Variables you might need to override

Expand Down
6 changes: 3 additions & 3 deletions logpkt.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@
#include <pcap.h>
#include <errno.h>

#ifdef OPENBSD
#ifdef __OpenBSD__
#include <libnet-1.1/libnet.h>
/* libnet include files do not define ETHERTYPE_IPV6 on OpenBSD */
#include <net/ethertypes.h>
#else /* !OPENBSD */
#else /* !__OpenBSD__ */
#include <libnet.h>
#endif /* !OPENBSD */
#endif /* !__OpenBSD__ */

#define MSS_VAL 1420

Expand Down

0 comments on commit a9b7f02

Please sign in to comment.