On 4/19/15 1:46 PM, Chen Gang wrote:
>
>
>
> -------- Forwarded Message --------
> Subject: [PATCH] readline: rltty.c: Declare ioctl() explicitly.
> Date: Sun, 19 Apr 2015 22:26:05 +0800
> From: Chen Gang <[email protected]>
> To: [email protected], [email protected]
> <[email protected]>
>
> Under Darwin, ioctl() is declared in "sys/ioctl.h", but except for some
> special control commands, we do not want to include "sys/ioctl.h". So
> declare it explicitly, the related warning:
I suppose I could add that for Darwin/Mac OS X, but the supplied
declaration is not correct for all systems (e.g., Solaris 10, HP-UX,
AIX). That's why I don't declare it, and probably why autoconf doesn't
have a test for it. Why not just include <sys/ioctl.h> there and see
what happens?
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/
_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline