]> git.mxchange.org Git - flightgear.git/commitdiff
Cygwin fixes.
authorcurt <curt>
Wed, 1 Mar 2000 00:31:46 +0000 (00:31 +0000)
committercurt <curt>
Wed, 1 Mar 2000 00:31:46 +0000 (00:31 +0000)
src/NetworkOLK/net_send.cxx

index 688a9d519927cef2102db1c5ac266363c60ac2b0..47898188e0e095c7b881ca16d5c84ac5fac4fb96 100644 (file)
 
 //#define printf //
 
-/* Work around Cygwin link trouble, missing errno */
-#if defined( __MINGW32__ ) || defined( __CYGWIN__ )
-int errno;
-#endif
-
 /* Netstuff */
 #include <arpa/inet.h>
 int sock = -1;
@@ -55,8 +50,15 @@ int my_sock;
 struct sockaddr_in address;
 struct sockaddr_in my_address;
 int result;
-extern const char *const sys_errlist[];
+
+#if defined( __CYGWIN__ )
+#include <errno.h>
+#else
 extern int errno;
+#endif
+
+extern const char *const sys_errlist[];
+
 int current_port  = 10000; 
 u_short base_port = 10000;
 u_short end_port  = 10010;