From ae3a0d62f26d8156b403e40d6007475006f3136f Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 19 Aug 2008 21:36:21 -0600 Subject: [PATCH] test-c-stack: fix compilation failure on FreeBSD 5.0 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite headers before . * doc/posix-headers/sys_resource.texi (sys/resource.h): Document the bug. Reported by Nelson H. F. Beebe. Signed-off-by: Eric Blake --- ChangeLog | 7 +++++++ doc/posix-headers/sys_resource.texi | 5 +++++ tests/test-c-stack.c | 4 ++++ 3 files changed, 16 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6008e5272..3460235cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2008-08-19 Eric Blake + test-c-stack: fix compilation failure on FreeBSD 5.0 + * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite + headers before . + * doc/posix-headers/sys_resource.texi (sys/resource.h): Document + the bug. + Reported by Nelson H. F. Beebe. + strverscmp: migrate from "strverscmp.h" to * modules/string (Makefile.am): Add new hooks. * modules/strverscmp (Files): Remove strverscmp.h. diff --git a/doc/posix-headers/sys_resource.texi b/doc/posix-headers/sys_resource.texi index e6f387fd9..53d74ca33 100644 --- a/doc/posix-headers/sys_resource.texi +++ b/doc/posix-headers/sys_resource.texi @@ -12,6 +12,11 @@ Portability problems fixed by Gnulib: Portability problems not fixed by Gnulib: @itemize @item +On some platforms, this header file requires that and + already be included: +FreeBSD 5.0. + +@item This header file is missing on some platforms: mingw. @end itemize diff --git a/tests/test-c-stack.c b/tests/test-c-stack.c index c1600a589..fe782c952 100644 --- a/tests/test-c-stack.c +++ b/tests/test-c-stack.c @@ -22,6 +22,10 @@ #include #include #if HAVE_SETRLIMIT +/* At least FreeBSD 5.0 needs extra headers before + will compile. */ +# include +# include # include #endif -- 2.11.0