2 (error "Can't build contribs with ASDF")
4 ;;; gethostbyname/gethostbyaddr are generally not thread safe. POSIX
5 ;;; 1003.1-2003 defines an alternative API, which is specified in the
6 ;;; RFC to be thread-safe. If it seems to be available, use it.
8 (defsystem "sb-bsd-sockets"
10 :defsystem-depends-on ("sb-grovel")
11 ;; We don't process random toplevel forms
12 :eval (when (sb-alien::find-dynamic-foreign-symbol-address "getaddrinfo")
13 (pushnew :sb-bsd-sockets-addrinfo *features*))
17 (:file "win32-lib" :if-feature :win32)
18 (:sb-grovel-constants-file "constants"
20 (:sb-grovel-constants-file "constants-unix"
21 :if-feature (:not :win32)
23 (:sb-grovel-constants-file "constants-win32"
26 (:sb-grovel-constants-file "constants-addrinfo"
27 :if-feature :sb-bsd-sockets-addrinfo
29 (:sb-grovel-constants-file "constants-gethostbyname"
30 :if-feature (:not :sb-bsd-sockets-addrinfo)
34 (:file "win32-sockets" :if-feature :win32)
41 (:file "local" :if-feature (:not :win32))
43 (:file "name-service")