Skip to content

Commit

Permalink
CMake: Linux: Pick BPF last
Browse files Browse the repository at this point in the history
BPF exists on both Linux and BSD.
Make `src/eth-bsd.c` least preferred, so that `src/eth-linux.c` is used
whenever possible on Linux.
  • Loading branch information
klemensn committed Apr 18, 2023
1 parent 3281cdf commit ced4593
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ if (HAVE_IPHLPAPI_H)
# list(APPEND PLATFORM_SOURCES src/eth-win32.c)
elseif(HAVE_NET_PFILT_H)
list(APPEND PLATFORM_SOURCES src/eth-pfilt.c)
elseif(HAVE_NET_BPF_H)
list(APPEND PLATFORM_SOURCES src/eth-bsd.c)
elseif(HAVE_LINUX_PF_PACKET)
list(APPEND PLATFORM_SOURCES src/eth-linux.c)
elseif(HAVE_NET_BPF_H)
list(APPEND PLATFORM_SOURCES src/eth-bsd.c)
elseif(HAVE_NET_RAW_H)
list(APPEND PLATFORM_SOURCES src/eth-snoop.c)
elseif(HAVE_SYS_NDD_VAR_H)
Expand Down

0 comments on commit ced4593

Please sign in to comment.