[PATCH v6 3/6] linux ttyname: Change return type of is_pty from int to bool
Florian Weimer
fw@deneb.enyo.de
Sun Nov 12 07:45:00 GMT 2017
* Luke Shumaker:
> --- a/sysdeps/unix/sysv/linux/ttyname.h
> +++ b/sysdeps/unix/sysv/linux/ttyname.h
> @@ -23,7 +23,7 @@
> /* Return true if this is a UNIX98 pty device, as defined in
> linux/Documentation/devices.txt (on linux < 4.10) or
> linux/Documentation/admin-guide/devices.txt (on linux >= 4.10). */
> -static inline int
> +static inline bool
> is_pty (struct stat64 *sb)
> {
> #ifdef _STATBUF_ST_RDEV
The file does not include <stdbool.h>, so bool might not be available.
Either include it, or use _Bool.
More information about the Libc-alpha
mailing list