Add warning when IPv6 options are not defined on Apple platforms

This commit is contained in:
Cameron Gutman
2023-12-28 00:35:46 -06:00
parent 89a7ebd63d
commit 43218d4de2
+3
View File
@@ -29,6 +29,9 @@
#include "enet/enet.h"
#if defined(__APPLE__)
#if !defined(IPV6_RECVPKTINFO) || !defined(IPV6_PKTINFO)
#warning Missing IPv6 socket option definitions. Is __APPLE_USE_RFC_3542 defined?
#endif
#ifndef HAS_POLL
#define HAS_POLL 1
#endif