From: Samuel Thibault Date: Sun, 28 Jan 2018 23:05:20 +0000 (+0100) Subject: hurd: Fix _POSIX_VDISABLE value X-Git-Tag: glibc-2.27~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80463dc69d0018d03740d440bdcaff2a0d054aee;p=thirdparty%2Fglibc.git hurd: Fix _POSIX_VDISABLE value * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0' instead of invalid -1. --- diff --git a/ChangeLog b/ChangeLog index babe572b5f8..6ee1d44de9a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -99,6 +99,8 @@ * mach/Makefile (user-interfaces): Add mach/gnumach. * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach. * sysdeps/mach/configure (mach_interface_list): Regenerate. + * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0' + instead of invalid -1. 2008-12-18 Thomas Schwinge diff --git a/sysdeps/mach/hurd/bits/posix_opt.h b/sysdeps/mach/hurd/bits/posix_opt.h index 03082adaa6a..828d7ffc77b 100644 --- a/sysdeps/mach/hurd/bits/posix_opt.h +++ b/sysdeps/mach/hurd/bits/posix_opt.h @@ -53,7 +53,7 @@ /* Elements of the `c_cc' member of `struct termios' structure can be disabled by using the value _POSIX_VDISABLE. */ -#define _POSIX_VDISABLE ((unsigned char) -1) +#define _POSIX_VDISABLE '\0' /* Different Hurd filesystems might do these differently.