summaryrefslogtreecommitdiffstats
path: root/stream/stream_netstream.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream_netstream.c')
-rw-r--r--stream/stream_netstream.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stream/stream_netstream.c b/stream/stream_netstream.c
index 4b8119fe96..4a3d2f04ed 100644
--- a/stream/stream_netstream.c
+++ b/stream/stream_netstream.c
@@ -42,7 +42,7 @@
#include <inttypes.h>
#include <errno.h>
-#ifndef HAVE_WINSOCK2
+#ifndef HAVE_WINSOCK2_H
#define closesocket close
#include <sys/socket.h>
#include <netinet/in.h>
@@ -90,7 +90,7 @@ static const struct m_struct_st stream_opts = {
//// When the cache is running we need a lock as
//// fill_buffer is called from another proccess
static int lock_fd(int fd) {
-#ifndef HAVE_WINSOCK2
+#ifndef HAVE_WINSOCK2_H
struct flock lock;
memset(&lock,0,sizeof(struct flock));
@@ -113,7 +113,7 @@ printf("FIXME? should lock here\n");
}
static int unlock_fd(int fd) {
-#ifndef HAVE_WINSOCK2
+#ifndef HAVE_WINSOCK2_H
struct flock lock;
memset(&lock,0,sizeof(struct flock));