Date: Sat, 23 Mar 2002 11:07:07 +1100 (EST) From: Bruce Evans <bde@zeta.org.au> To: Garrett Wollman <wollman@lcs.mit.edu> Cc: "M. Warner Losh" <imp@village.org>, <current@FreeBSD.ORG> Subject: Re: X11 breakage Message-ID: <20020323110121.B20153-100000@gamplex.bde.org> In-Reply-To: <200203221728.g2MHSrI85002@khavrinen.lcs.mit.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 22 Mar 2002, Garrett Wollman wrote: > <<On Fri, 22 Mar 2002 10:08:05 -0700 (MST), "M. Warner Losh" <imp@village.org> said: > > > -int ioctl(int, unsigned long, ...); > > +int ioctl __P((int, unsigned long, ...)); > > int (ioctl)(int, unsigned long, ...); > > is the ISO-sanctioned way. It is just a more robust hack when used in system headers: #define ioctl you lose #include <sys/ioctl.h> gives undefined behaviour which happens to break both of the above. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020323110121.B20153-100000>