1.0.24.46: SB-BSD-SOCKETS workingness from saved cores on Windows
authorNikodemus Siivola <nikodemus@random-state.net>
Sat, 17 Jan 2009 10:56:47 +0000 (10:56 +0000)
committerNikodemus Siivola <nikodemus@random-state.net>
Sat, 17 Jan 2009 10:56:47 +0000 (10:56 +0000)
 * Need to call WSA-STARTUP on init.

 * Reported by Stephen Westfold, fix by Rudi Schlatte.

NEWS
contrib/sb-bsd-sockets/win32-sockets.lisp
version.lisp-expr

diff --git a/NEWS b/NEWS
index 460fd62..767cb73 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -28,6 +28,9 @@ changes in sbcl-1.0.25 relative to 1.0.24:
     longer reuses the functional from the previous expansion site.
   * bug fix: DEFTYPE no longer breaks on bodies consisting of a single
     unquoted symbol. Regression from 1.0.22.8. (reported by Ariel Badichi)
+  * improvements to the Windows port:
+    ** SB-BSD-SOCKETS now works from saved cores as well. (reported by Stephen
+       Westfold, thanks to Rudi Schlatte)
 
 changes in sbcl-1.0.24 relative to 1.0.23:
   * new feature: ARRAY-STORAGE-VECTOR provides access to the underlying data
index 5b20df5..7aa765a 100644 (file)
 (defun make-wsa-version (major minor)
   (dpb minor (byte 8 8) major))
 
-(defvar *wsa-startup-call*
-  (wsa-startup (make-wsa-version 2 2)))
+(defvar *wsa-startup-call* nil)
+
+(defun call-wsa-startup ()
+  (setf *wsa-startup-call* (wsa-startup (make-wsa-version 2 2))))
+
+;;; Startup!
+(call-wsa-startup)
+
+;;; Ensure startup for saved cores as well.
+(push 'call-wsa-startup sb-ext:*init-hooks*)
 
 ;; not implemented on win32
 (defconstant af-local 0)
index b43f299..9793066 100644 (file)
@@ -17,4 +17,4 @@
 ;;; checkins which aren't released. (And occasionally for internal
 ;;; versions, especially for internal versions off the main CVS
 ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"1.0.24.45"
+"1.0.24.46"