summaryrefslogtreecommitdiff
path: root/linux_priv.c
diff options
context:
space:
mode:
authorq66 <daniel@octaforge.org>2019-11-29 17:43:17 +0100
committerdormando <dormando@rydia.net>2020-01-13 17:36:10 -0800
commita7770013725d04b8489d8bc119f21819d48ad64c (patch)
tree0bbb587303ed59a4b163e7e7e2493a1f6387b747 /linux_priv.c
parent3b903699838c4cc9792d31dbe9c00d025340a0b4 (diff)
downloadmemcached-a7770013725d04b8489d8bc119f21819d48ad64c.tar.gz
linux_priv.c: add termios.h include to fix powerpc(64) builds
On PowerPC (and variants), Linux has its own ioctls.h which defines `TCGETS` as `_IOR('t', 19, struct termios)`. That means without having included `termios.h`, build will fail with usage of incomplete type `struct termios` as soon as `TCGETS` is used.
Diffstat (limited to 'linux_priv.c')
-rw-r--r--linux_priv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux_priv.c b/linux_priv.c
index c591caf..4332c33 100644
--- a/linux_priv.c
+++ b/linux_priv.c
@@ -1,5 +1,6 @@
#include "config.h"
#include <seccomp.h>
+#include <termios.h>
#include <errno.h>
#include <stdlib.h>
#include <sys/ioctl.h>