Ver código fonte

do not include a header in cygwin #341

Stasik0 9 anos atrás
pai
commit
71153bbd63
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      examples/networklayer_tcp.c

+ 3 - 1
examples/networklayer_tcp.c

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