Procházet zdrojové kódy

do not include a header in cygwin #341

Stasik0 před 9 roky
rodič
revize
71153bbd63
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  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