diff options
author | Guy Harris <gharris@sonic.net> | 2023-11-01 15:55:57 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2023-11-01 15:55:57 -0700 |
commit | 27e8c8ebdeb8a9c1b12da49cb1428127e4c9abf6 (patch) | |
tree | 0f172cbd65ca6c115e6e5e2be15db7947eacb941 /cmake | |
parent | af91d78a54d7e716df88798fc208562590a45053 (diff) |
FindPCAP: mystery solved!
Explain why __builtin_available() doesn't help with the problem in
[skip ci]
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/FindPCAP.cmake | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/cmake/modules/FindPCAP.cmake b/cmake/modules/FindPCAP.cmake index c8a24167c4..eb9565bc2f 100644 --- a/cmake/modules/FindPCAP.cmake +++ b/cmake/modules/FindPCAP.cmake @@ -238,10 +238,14 @@ if(PCAP_FOUND) # isn't found in the system libpcap. # # Protecting calls to those APIs with __builtin_available() - # does not appear to prevent this, for some unknown reason, - # and it doesn't even allow the program to compile with - # versions of Xcode prior to Xcode 15, as the pcap.h file - # doesn't specify minimum OS versions for those functions. + # does not prevent this, because the libpcap header files + # in the Sonoma SDK mark them as being first available + # in macOS 10.13, just like all the other routines introduced + # in libpcap 1.9, even though they're only available if libpcap + # is built with remote capture enabled or stub routines are + # provided. (A fix to enable this has been checked into the + # libpcap repository, and may end up in a later version of + # the SDK.) # # Given all that, and given that the versions of the # remote-capture APIs in Sonoma are stubs that always fail, |