* tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
headers before <sys/resource.h>.
* doc/posix-headers/sys_resource.texi (sys/resource.h): Document
the bug.
Reported by Nelson H. F. Beebe.
Signed-off-by: Eric Blake <ebb9@byu.net>
2008-08-19 Eric Blake <ebb9@byu.net>
+ test-c-stack: fix compilation failure on FreeBSD 5.0
+ * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
+ headers before <sys/resource.h>.
+ * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
+ the bug.
+ Reported by Nelson H. F. Beebe.
+
strverscmp: migrate from "strverscmp.h" to <string.h>
* modules/string (Makefile.am): Add new hooks.
* modules/strverscmp (Files): Remove strverscmp.h.
Portability problems not fixed by Gnulib:
@itemize
+@item
+On some platforms, this header file requires that <sys/types.h> and
+<sys/time.h> already be included:
+FreeBSD 5.0.
+
@item
This header file is missing on some platforms:
mingw.
#include <stdio.h>
#include <stdlib.h>
#if HAVE_SETRLIMIT
+/* At least FreeBSD 5.0 needs extra headers before <sys/resource.h>
+ will compile. */
+# include <sys/types.h>
+# include <sys/time.h>
# include <sys/resource.h>
#endif