From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Thibault Subject: Re: [ANNOUNCE] util-linux v2.23-rc1 Date: Fri, 22 Mar 2013 14:41:47 +0100 Message-ID: <20130322134147.GA6125@type.bordeaux.inria.fr> References: <20130322125621.GA6278@x2.net.home> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="ibTvN161/egqYuK8" Content-Transfer-Encoding: 8bit Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, util-linux-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Karel Zak Return-path: Content-Disposition: inline In-Reply-To: <20130322125621.GA6278-s5vVilr7EKH/9pzu0YdTqQ@public.gmane.org> Sender: util-linux-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-fsdevel.vger.kernel.org --ibTvN161/egqYuK8 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit Hello, Karel Zak, le Fri 22 Mar 2013 13:56:21 +0100, a écrit : > The util-linux release v2.23-rc1 is available at > > ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.23 > > Feedback and bug reports, as always, are welcomed. Here is a couple of obvious fixes for non-linux systems. Samuel --ibTvN161/egqYuK8 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch diff --git a/login-utils/sulogin.c b/login-utils/sulogin.c index db5f41e..621df1e 100644 --- a/login-utils/sulogin.c +++ b/login-utils/sulogin.c @@ -118,7 +118,9 @@ static void tcinit(struct console *con) cfsetispeed(tio, ispeed); cfsetospeed(tio, ospeed); +#ifdef HAVE_STRUCT_TERMIOS_C_LINE tio->c_line = 0; +#endif tio->c_cc[VTIME] = 0; tio->c_cc[VMIN] = 1; @@ -198,7 +200,7 @@ static void tcfinal(struct console *con) tio->c_cc[VEOF] = CEOF; #ifdef VSWTC tio->c_cc[VSWTC] = _POSIX_VDISABLE; -#else +#elif defined(VSWTCH) tio->c_cc[VSWTCH] = _POSIX_VDISABLE; #endif tio->c_cc[VSTART] = CSTART; --ibTvN161/egqYuK8-- -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html