changeset 51399:c2c7a2898903

Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
author Dave Love <fx@gnu.org>
date Mon, 02 Jun 2003 18:39:39 +0000
parents 2699fa0f135f
children 6b26c71e351d
files src/mem-limits.h
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/mem-limits.h	Mon Jun 02 18:36:33 2003 +0000
+++ b/src/mem-limits.h	Mon Jun 02 18:39:39 2003 +0000
@@ -37,9 +37,13 @@
 
 #else /* not _LIBC */
 
-#if defined (__osf__) && (defined (__mips) || defined (mips) || defined(__alpha))
-#include <sys/time.h>
-#include <sys/resource.h>
+#ifdef HAVE_SYS_RESOURCE_H
+# include <sys/time.h>
+# include <sys/resource.h>
+#else
+# if HAVE_SYS_VLIMIT_H
+#  include <sys/vlimit.h>	/* Obsolete, says glibc */
+# endif
 #endif
 
 #ifdef __bsdi__