socket: Fix compiler warning due to unused variable
diff --git a/src/socket.c b/src/socket.c
index fe7d06c..ebc77e3 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -55,7 +55,9 @@
 	struct sockaddr_un name;
 	int sock;
 	size_t size;
+#ifdef SO_NOSIGPIPE
 	int yes = 1;
+#endif
 
 	// remove if still present
 	unlink(filename);
@@ -111,7 +113,9 @@
 	int sfd = -1;
 	size_t size;
 	struct stat fst;
+#ifdef SO_NOSIGPIPE
 	int yes = 1;
+#endif
 
 	// check if socket file exists...
 	if (stat(filename, &fst) != 0) {