From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roger Pau Monne Subject: Re: [PATCH] libxl: build fix Date: Thu, 17 May 2012 12:41:25 +0100 Message-ID: <4FB4E3E5.4090600@citrix.com> References: <4FB3CD0E.5000708@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4FB3CD0E.5000708@amd.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Christoph Egger Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Christoph Egger wrote: > Fix this build error: > > libxl_aoutils.c: In function 'libxl__openptys': > libxl_aoutils.c:281:13: error: passing argument 4 of 'openpty' discards > qualifiers from pointer target type > /usr/include/util.h:92:6: note: expected 'struct termios *' but argument > is of type 'const struct termios *' > libxl_aoutils.c:281:13: error: passing argument 5 of 'openpty' discards > qualifiers from pointer target type > /usr/include/util.h:92:6: note: expected 'struct winsize *' but argument > is of type 'const struct winsize *' > > Signed-off-by: Christoph Egger Acked-by: Roger Pau Monne I've tested this on both NetBSD and Debian, and it fixes the problem, without introducing new ones. It's strange because these are BSD functions, but Linux implementation change the parameters...