lordgamez commented on a change in pull request #1118:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1118#discussion_r659840202



##########
File path: thirdparty/pcap++/Pcap++/src/PcapLiveDevice.cpp
##########
@@ -26,11 +26,6 @@
 #endif
 #ifdef MAC_OS_X
 #include <net/if_dl.h>
-#endif
-
-#if defined(__linux__) && !defined(__GLIBC__)
-#include <linux/sysctl.h>
-#elif !defined(WIN32) && !defined(WINx64)
 #include <sys/sysctl.h>
 #endif

Review comment:
       Yes, that was my intention. If you check the file `sysctl` call is only 
used on line 
[682](https://github.com/apache/nifi-minifi-cpp/blob/563848f760dfc679ad86fb476acb36e74142cdac/thirdparty/pcap%2B%2B/Pcap%2B%2B/src/PcapLiveDevice.cpp#L682)
 and 
[689](https://github.com/apache/nifi-minifi-cpp/blob/563848f760dfc679ad86fb476acb36e74142cdac/thirdparty/pcap%2B%2B/Pcap%2B%2B/src/PcapLiveDevice.cpp#L689)
 and those are only part of the MACOS build. The Jira ticket also mentions that 
this was the same fix in the newer version of the official Pcap++ repository in 
[this 
commit](https://github.com/seladb/PcapPlusPlus/commit/f474316b2fcdcd3b2d6ab6143ef4c3b2b5ec9ea8).




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to