tumi8 / vermont

Vermont (VERsatile MONitoring Toolkit) is an open-source software toolkit for the creation and processing of network flow data.
https://www.net.in.tum.de/research/software/#vermont
GNU General Public License v2.0
58 stars 22 forks source link

Fix CMake check for linux/if.h #71

Closed bluca closed 6 years ago

bluca commented 6 years ago

CMake not only checks if the header exists, but tries to include and compile it, which fails with linux/if.h since it needs another header which it does not include itself. Manually include it as a CFLAG in the CHECK_INCLUDE_FILE call to fix it.

@ogasser noticed a small mistake in the previous PR - nothing bad as the include is only used to get a definition that is available as a fallback, but worth fixing anyway.