Mercurial > hg > octave-nkf > gnulib-hg
changeset 8904:51fbf26a13ed
Work around mingw test failures exposed by m4-1.4.9b.
* m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
* tests/test-unistd.c: Disable uid_t and git_t tests for the
moment.
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Thu, 31 May 2007 03:21:00 +0000 |
parents | 33db9cbd68d7 |
children | 20765f91596b |
files | ChangeLog m4/stdint.m4 tests/test-unistd.c |
diffstat | 3 files changed, 14 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-05-30 Eric Blake <ebb9@byu.net> + and Bruno Haible <bruno@clisp.org> + + Work around mingw test failures exposed by m4-1.4.9b. + * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug. + * tests/test-unistd.c: Disable uid_t and git_t tests for the + moment. + 2007-05-30 Bruno Haible <bruno@clisp.org> * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
--- a/m4/stdint.m4 +++ b/m4/stdint.m4 @@ -1,4 +1,4 @@ -# stdint.m4 serial 23 +# stdint.m4 serial 24 dnl Copyright (C) 2001-2002, 2004-2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -147,7 +147,9 @@ int check_SIG_ATOMIC: SIG_ATOMIC_MIN <= (sig_atomic_t) 0 && (sig_atomic_t) 0 < SIG_ATOMIC_MAX ? 1 : -1; int check_SIZE: (size_t) 0 < SIZE_MAX ? 1 : -1; int check_WCHAR: WCHAR_MIN <= (wchar_t) 0 && (wchar_t) 0 < WCHAR_MAX ? 1 : -1; - int check_WINT: WINT_MIN <= (wint_t) 0 && (wint_t) 0 < WINT_MAX ? 1 : -1; + int check_WINT: WINT_MIN <= (wint_t) 0 && (wint_t) 0 < WINT_MAX + && (WINT_MIN < (wint_t) 0 || (wint_t) -1 == (wint_t) WINT_MAX) + ? 1 : -1; /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ int check_UINT8_C: