summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-12-09 12:59:36 +0100
committerantirez <antirez@gmail.com>2014-12-09 12:59:36 +0100
commit2533e2994e13e389ad2709d6f4375dc1d71d573e (patch)
treee6e2d149ed609c6c01487c0a4c0813a8cccb5401
parent52bc358c11345c93facd09d7095e51877001f106 (diff)
downloadredis-2533e2994e13e389ad2709d6f4375dc1d71d573e.tar.gz
Include stropts only if __sun is defined.
-rw-r--r--src/memtest.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/memtest.c b/src/memtest.c
index e424e528b..39fc4fcaa 100644
--- a/src/memtest.c
+++ b/src/memtest.c
@@ -35,7 +35,9 @@
#include <errno.h>
#include <termios.h>
#include <sys/ioctl.h>
+#if defined(__sun)
#include <stropts.h>
+#endif
#include "config.h"
#if (ULONG_MAX == 4294967295UL)