Revert "Keep systems happy which do not have sys/resource.h"
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 11 Jul 2020 04:55:28 +0000 (06:55 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 11 Jul 2020 04:55:27 +0000 (06:55 +0200)
This reverts commit f4ba0d4b24301f389dfb76a66094b093125fac9b.

configure.ac
src/ui/gui/main.c

index 24cb008fcbf81bd350c10b34764e2f87fbfffcbf..50b7472f9db8b9b1012b5b6f63da59029b507c5d 100644 (file)
@@ -56,8 +56,6 @@ if test "x$MSGFMT" = x; then
   PSPP_REQUIRED_PREREQ([msgfmt (is usually provided with gettext)])
 fi
 
-AC_CHECK_HEADERS([sys/resource.h])
-
 
 dnl Checks for libraries.
 AC_SYS_LARGEFILE
index 9a7f8e1987a7d8a7def941e471df7f37bc500e79..ecb07f83ff378fb6c2c725220396642a68b551f5 100644 (file)
 #include <gtk/gtk.h>
 #include <stdlib.h>
 #include <sys/stat.h>
-#if ENABLE_RELOCATABLE && defined(__APPLE__)
 #include <sys/resource.h>
+#if ENABLE_RELOCATABLE && defined(__APPLE__)
 static const bool apple_relocatable = true;
 #else
 static const bool apple_relocatable = false;
-#if HAVE_SYS_RESOURCE_H
-#include <sys/resource.h>
-#else
-/* Dummy definitions to keep the compiler happy. */
-struct rlimit
-{
-  int rlim_cur;
-  int rlim_max;
-};
-#define RLIMIT_NOFILE 0
-#endif
 #endif
 
 #include "language/lexer/include-path.h"