From 2f7955cb2288bc647fb4462cac5e4ce1c3a75a01 Mon Sep 17 00:00:00 2001 From: jay Date: Sun, 27 May 2007 15:21:16 +0000 Subject: [PATCH] Fixed Savannah bug #19983, compilation failure on DEC C V5.9-005 on Digital UNIX V4.0 --- ChangeLog | 5 +++++ NEWS | 3 +++ find/defs.h | 2 +- import-gnulib.config | 4 ++-- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1854c93..888f78a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2007-05-27 James Youngman + * import-gnulib.config (modules): Import sys_stat. + (gnulib_version): Update to 2007-05-26. This fixes a compilation + error in stdlib.h with the DEC C compiler. This fixes Savannah + bug# 19983. + * find/parser.c (safe_atoi): New function, like atoi, but which calls error(1, ...) when the argument is invalid or out of range. (parse_group): Use safe_atoi. diff --git a/NEWS b/NEWS index 663d86f..fca9230 100644 --- a/NEWS +++ b/NEWS @@ -26,6 +26,9 @@ return true. A variety of changes were made to allow compilation to succeed on non-GNU systems. +#19983: Now compiles on DEC C V5.9-005 on Digital UNIX V4.0 (or at +least, should). + #19970: Compile correctly on C89 systems where the "_Bool" type is not provided, taking into account the limitations of the gnulib replacement for stdbool.h. diff --git a/find/defs.h b/find/defs.h index 5542047..12acf41 100644 --- a/find/defs.h +++ b/find/defs.h @@ -32,6 +32,7 @@ #include /* for CHAR_BIT */ #include /* for bool/boolean */ #include /* for uintmax_t */ +#include /* S_ISUID etc. */ @@ -48,7 +49,6 @@ typedef bool boolean; #include "timespec.h" #include "buildcmd.h" #include "quotearg.h" -#include "stat_.h" /* S_ISUID etc. */ /* These days we will assume ANSI/ISO C protootypes work on our compiler. */ #define PARAMS(Args) Args diff --git a/import-gnulib.config b/import-gnulib.config index e3b2066..b3b1db0 100644 --- a/import-gnulib.config +++ b/import-gnulib.config @@ -1,5 +1,5 @@ # What version of gnulib to use? -gnulib_version="2007-04-17" +gnulib_version="2007-05-26" destdir="gnulib" @@ -26,4 +26,4 @@ modechange pathmax quotearg realloc regex rpmatch savedir \ stpcpy strdup strftime c-strstr strtol strtoul strtoull strtoumax \ xalloc xalloc-die xgetcwd xstrtod xstrtol xstrtoumax yesno human filemode \ getline stpcpy canonicalize mountlist closeout gettext stat-macros stat-time \ -timespec verify wcwidth xstrtod" +sys_stat timespec verify wcwidth xstrtod" -- 2.11.4.GIT