It was being implicitly included via <sys/mount.h>, but the code is using TIOCSCTTY which is unrelated to the mount ioctls, so make it explicit instead. Signed-off-by: Guillem Jover <guillem@xxxxxxxxxxx> --- sys-utils/switch_root.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/sys-utils/switch_root.c b/sys-utils/switch_root.c index b192a08..14a7db0 100644 --- a/sys-utils/switch_root.c +++ b/sys-utils/switch_root.c @@ -23,6 +23,7 @@ #include <sys/mount.h> #include <sys/types.h> #include <sys/stat.h> +#include <sys/ioctl.h> #include <sys/param.h> #include <fcntl.h> #include <stdio.h> -- 1.6.4.3 -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html