[systemd-devel] [RFC 10/25] shared/pty: fall back to kernel header for TIOCSIG
Emil Renner Berthing
systemd at esmil.dk
Thu Sep 18 06:24:46 PDT 2014
---
src/shared/pty.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/shared/pty.c b/src/shared/pty.c
index 2863da4..21a87e5 100644
--- a/src/shared/pty.c
+++ b/src/shared/pty.c
@@ -61,6 +61,11 @@
#include <termios.h>
#include <unistd.h>
+/* If sys/ioctl.h doesn't provide TIOCSIG use the kernel header */
+#ifndef TIOCSIG
+#include <asm/ioctls.h>
+#endif
+
#include "barrier.h"
#include "macro.h"
#include "pty.h"
--
2.1.0
More information about the systemd-devel
mailing list