about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/getline.c
diff options
context:
space:
mode:
Diffstat (limited to 'WWW/Library/Implementation/getline.c')
-rw-r--r--WWW/Library/Implementation/getline.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/WWW/Library/Implementation/getline.c b/WWW/Library/Implementation/getline.c
index 3168b9ec..370c5a6e 100644
--- a/WWW/Library/Implementation/getline.c
+++ b/WWW/Library/Implementation/getline.c
@@ -39,7 +39,11 @@ unsigned int len;
 
    if (lineptr == NULL || n == NULL)
    {
+#ifdef _WINDOWS
+      WSASetLastError(EINVAL);
+#else
       SOCKET_ERRNO = EINVAL;
+#endif
       return -1;
    }