Parcourir la source

do not include a header in cygwin #341

Stasik0 il y a 9 ans
Parent
commit
71153bbd63
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      examples/networklayer_tcp.c

+ 3 - 1
examples/networklayer_tcp.c

@@ -18,7 +18,9 @@
 # include <fcntl.h>
 # include <sys/select.h>
 # include <netinet/in.h>
-# include <netinet/tcp.h>
+#ifndef __CYGWIN__
+    # include <netinet/tcp.h>
+#endif
 # include <sys/ioctl.h>
 # include <netdb.h> //gethostbyname for the client
 # include <unistd.h> // read, write, close