ソースを参照

do not include a header in cygwin #341

Stasik0 9 年 前
コミット
71153bbd63
共有1 個のファイルを変更した3 個の追加1 個の削除を含む
  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