[systemd-devel] [RFC 10/25] shared/pty: fall back to kernel header for TIOCSIG
David Herrmann
dh.herrmann at gmail.com
Thu Sep 18 15:22:22 PDT 2014
Hi
On Thu, Sep 18, 2014 at 3:24 PM, Emil Renner Berthing <systemd at esmil.dk> wrote:
> ---
> 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
> +
I'd prefer to include linux/ioctl.h. Does that work for you? It is
kinda linux specific, so it sounds reasonable to include the linux
header. I pushed a fix for that. If it still doesn't work, lemme know.
Thanks
David
> #include "barrier.h"
> #include "macro.h"
> #include "pty.h"
> --
> 2.1.0
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
More information about the systemd-devel
mailing list