summaryrefslogtreecommitdiff
path: root/src/memtest.c
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:46 +0100
commit5f5a9f0d14b4b9f2f65393f2764ee760475f6b8c (patch)
treeb6b0915cfff78f45d67ca7ae4cd43ead23547d80 /src/memtest.c
parentf04ec18a36a55e73106aeadb17ad36b7589c7f17 (diff)
downloadredis-5f5a9f0d14b4b9f2f65393f2764ee760475f6b8c.tar.gz
Include stropts only if __sun is defined.
Diffstat (limited to 'src/memtest.c')
-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)