Missing SIOC ioctl constants on MacOS #3626
Labels
C-API-request
Category: API request
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Milestone
Target Triple: aarch64-apple-darwin
Hi, I was able to use the SIOCGIFFLAGS ioctl (with the libc::ifreq struct) just fine on Linux, but on Mac, I hit an issue due to the SIOCGIFFLAGS constant not being defined. It looks like all of the ioctl constants from sys/sockio.h are missing.
For now I was able to use this workaround:
The text was updated successfully, but these errors were encountered: