fix unstable/socket loading in windows
closes PR 13743
This commit is contained in:
parent
1c3cbce0af
commit
26545f29b9
|
@ -49,13 +49,14 @@ macosx (64):
|
||||||
(_fun #:save-errno 'posix
|
(_fun #:save-errno 'posix
|
||||||
_int _int _int -> _int))
|
_int _int _int -> _int))
|
||||||
(define-libc connect
|
(define-libc connect
|
||||||
(case platform
|
(_fun #:save-errno 'posix
|
||||||
((linux86)
|
_int
|
||||||
(_fun #:save-errno 'posix
|
(case platform
|
||||||
_int _linux_sockaddr_un-pointer _int -> _int))
|
((linux86) _linux_sockaddr_un-pointer)
|
||||||
((macosx)
|
((macosx) _macosx_sockaddr_un-pointer)
|
||||||
(_fun #:save-errno 'posix
|
(else _pointer)) ;; dummy type to avoid error
|
||||||
_int _macosx_sockaddr_un-pointer _int -> _int))))
|
_int
|
||||||
|
-> _int))
|
||||||
(define-libc close
|
(define-libc close
|
||||||
(_fun #:save-errno 'posix
|
(_fun #:save-errno 'posix
|
||||||
_int -> _int))
|
_int -> _int))
|
||||||
|
@ -68,7 +69,8 @@ macosx (64):
|
||||||
((linux86)
|
((linux86)
|
||||||
(make-linux_sockaddr_un AF_UNIX path))
|
(make-linux_sockaddr_un AF_UNIX path))
|
||||||
((macosx)
|
((macosx)
|
||||||
(make-macosx_sockaddr_un (bytes-length path) AF_UNIX path))))
|
(make-macosx_sockaddr_un (bytes-length path) AF_UNIX path))
|
||||||
|
(else (error 'make-sockaddr "not available"))))
|
||||||
|
|
||||||
(define strerror_r
|
(define strerror_r
|
||||||
(get-ffi-obj (case platform
|
(get-ffi-obj (case platform
|
||||||
|
|
Loading…
Reference in New Issue
Block a user