Commits

Ivan Vučica  committed 9a1a0c1

Fixed compile bug under Linux-based systems.

  • Participants
  • Parent commits 8255dae

Comments (0)

Files changed (1)

 
 #include <arpa/inet.h> /* inet_addr() & co. */
 #include <netinet/in.h> /* INET_ADDRSTRLEN */
+#if __APPLE__
+/* if we include this under linux, then there is an error on line 45 */
 #include <net/if.h> /* struct ifreq */
+#endif
 
 /* for uint16_t */
 #include <stdint.h>