summaryrefslogtreecommitdiff
path: root/tests/server/sws.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-04-20 09:29:23 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-04-20 09:29:23 +0200
commit31bed5e9fc3de577fa333410539aac10cd55783f (patch)
treeea57e901b24379b6ebf02c791c7ba1f2f346045f /tests/server/sws.c
parent6e3f2febcba4e744eb2f78db4905c76e73615c6c (diff)
downloadcurl-31bed5e9fc3de577fa333410539aac10cd55783f.tar.gz
sws: #ifdef S_IFSOCK usebagder/sws-ifsock
SCO OpenServer 5.0.7 does not define S_IFSOCK. Reported-by: Kevin R. Bulgrien Bug: https://curl.se/mail/lib-2021-04/0074.html
Diffstat (limited to 'tests/server/sws.c')
-rw-r--r--tests/server/sws.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c
index 0c31e2e9b..372e6514b 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -2092,11 +2092,13 @@ int main(int argc, char *argv[])
unix_socket, errno, strerror(errno));
goto sws_cleanup;
}
+#ifdef S_IFSOCK
if((statbuf.st_mode & S_IFSOCK) != S_IFSOCK) {
logmsg("Error binding socket, failed to stat %s: (%d) %s",
unix_socket, error, strerror(error));
goto sws_cleanup;
}
+#endif
/* dead socket, cleanup and retry bind */
rc = unlink(unix_socket);
if(0 != rc) {