Commit b2522d2b by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

configure.in (rlim_t): Define to long if no valid definition found in sys/resource.h.

	* configure.in (rlim_t): Define to long if no valid definition
	found in sys/resource.h.
	* config.in, configure: Regenerate.

From-SVN: r64241
parent f7248b51
2003-03-12 Hans-Peter Nilsson <hp@bitrange.com>
* configure.in (rlim_t): Define to long if no valid definition
found in sys/resource.h.
* config.in, configure: Regenerate.
2003-03-12 Neil Booth <neil@daikokuya.co.uk>
* config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
......
......@@ -396,6 +396,9 @@
/* Define if you have a working <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define to `long' if <sys/resource.h> doesn't define. */
#undef rlim_t
/* Define if printf supports %p. */
#undef HAVE_PRINTF_PTR
......
......@@ -814,6 +814,15 @@ gcc_AC_CHECK_DECLS(getrlimit setrlimit getrusage, , ,[
#endif
])
AC_TRY_COMPILE([
#include "ansidecl.h"
#include "system.h"
#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#endif
],[rlim_t l = 0;],,[AC_DEFINE([rlim_t],[long],
[Define to \`long' if <sys/resource.h> doesn't define.])])
gcc_AC_CHECK_DECLS(ldgetname, , ,[
#include "ansidecl.h"
#include "system.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment