Skip to content

Commit

Permalink
usrsctp, bugfix: compile error on ios.
Browse files Browse the repository at this point in the history
  • Loading branch information
xicilion committed Apr 30, 2024
1 parent d68ab05 commit 09deb93
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion usrsctp/src/user_recv_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@
#endif
#endif
#if defined(__APPLE__) || defined(__DragonFly__) || defined(__FreeBSD__)
#include <net/route.h>
// #include <net/route.h>
#define RTAX_IFA 5 /* interface addr sockaddr present */
#define RTAX_MAX 8 /* size of array to allocate */
#define RTM_NEWADDR 0xc /* address being added to iface */
#define RTM_DELADDR 0xd /* address being removed from iface */
#endif
/* local macros and datatypes used to get IP addresses system independently */
#if !defined(IP_PKTINFO) && !defined(IP_RECVDSTADDR)
Expand Down

0 comments on commit 09deb93

Please sign in to comment.