hurd: Fix _POSIX_VDISABLE value
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 28 Jan 2018 23:05:20 +0000 (00:05 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 28 Jan 2018 23:05:20 +0000 (00:05 +0100)
* sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
instead of invalid -1.

ChangeLog
sysdeps/mach/hurd/bits/posix_opt.h

index babe572b5f8692b296906da3761dd7de9edbd619..6ee1d44de9a326f8ec8ba3729fa7e59c0512f703 100644 (file)
--- 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  <tschwinge@gnu.org>
 
index 03082adaa6aa5968b1c572817d617d0c9619927b..828d7ffc77b480816cffa6f7c50c93dc071d16de 100644 (file)
@@ -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.