aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/socket.c b/socket.c
index ca4f0e16..d881498c 100644
--- a/socket.c
+++ b/socket.c
@@ -7,6 +7,9 @@
#include "config.h"
#include <stdio.h>
#include <string.h>
+#ifdef HAVE_MEMORY_H
+#include <memory.h>
+#endif /* HAVE_MEMORY_H */
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
@@ -35,10 +38,6 @@
#endif
#endif /* INET_ATON */
-#ifdef SUNOS
-#include <memory.h>
-#endif
-
int SockOpen(char *host, int clientPort)
{
int sock;