wsaData evades with *nix.
authorHiroshi Saito <hiroshi@winpg.jp>
Tue, 3 Apr 2007 15:20:31 +0000 (15:20 +0000)
committerHiroshi Saito <hiroshi@winpg.jp>
Tue, 3 Apr 2007 15:20:31 +0000 (15:20 +0000)
environ.c

index 6e1c50c8214654280237c8cad88099d3a5de04ff..d8dbc30578183b76be7a74a43802ab518d3d5461 100644 (file)
--- a/environ.c
+++ b/environ.c
@@ -500,6 +500,7 @@ EN_Constructor(void)
 {
    CSTR    func = "EN_Constructor";
    EnvironmentClass *rv = NULL;
+#ifdef WIN32
 #ifndef    _WSASTARTUP_IN_DLLMAIN_
    WORD        wVersionRequested;
    WSADATA     wsaData;
@@ -516,6 +517,7 @@ EN_Constructor(void)
        goto cleanup;
    }
 #endif /* _WSASTARTUP_IN_DLLMAIN_ */
+#endif
 
    rv = (EnvironmentClass *) malloc(sizeof(EnvironmentClass));
 cleanup: