Make it compile under cygwin.

This commit is contained in:
goffioul 2005-05-17 13:04:41 +00:00
parent 986198842f
commit 29706f33ca

View file

@ -42,7 +42,9 @@
"#include <netinet/in.h>"
"#include <errno.h>"
"#include <fcntl.h>"
"#include <stdio.h>")
"#include <stdio.h>"
#+:cygwin
"#define MSG_WAITALL 0")
#+:wsock
(clines
"#include <winsock2.h>"
@ -1260,10 +1262,10 @@ GET-NAME-SERVICE-ERRNO")
(define-sockopt socket-dont-route "SO_DONTROUTE" bool)
(define-sockopt socket-linger "SO_LINGER" bool)
#-(or :linux :wsock)
#-(or :linux :wsock :cygwin)
(define-sockopt sockopt-reuse-port "SO_REUSEPORT" bool)
;; Add sockopts here as you need them...
;; Finished loading
(provide 'sockets)
(provide 'sockets)