summaryrefslogtreecommitdiff
path: root/src/mem-limits.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1993-07-22 18:55:19 +0000
committerRoland McGrath <roland@gnu.org>1993-07-22 18:55:19 +0000
commit1b07924597f03d29a6cba7fd6cf2c530b811a809 (patch)
treee8c24e0e02ebcb0ef8f2b9740d9f8d09e1c16402 /src/mem-limits.h
parent3c70355ae1ea77f8410fe1e8b6704187918ec5ef (diff)
downloademacs-1b07924597f03d29a6cba7fd6cf2c530b811a809.tar.gz
[_LIBC]: Just include <sys/resource.h>, and skip hairy #ifdef mess.
Diffstat (limited to 'src/mem-limits.h')
-rw-r--r--src/mem-limits.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mem-limits.h b/src/mem-limits.h
index d4e743f6ed2..7cdb7f83b31 100644
--- a/src/mem-limits.h
+++ b/src/mem-limits.h
@@ -17,6 +17,12 @@ You should have received a copy of the GNU General Public License
along with GNU Emacs; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+#ifdef _LIBC
+
+#include <sys/resource.h>
+
+#else
+
#if defined(__osf__) && (defined(__mips) || defined(mips))
#include <sys/time.h>
#include <sys/resource.h>
@@ -35,6 +41,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <sys/resource.h>
#endif /* BSD4_2 */
+#endif /* _LIBC */
+
#ifdef emacs
/* The important properties of this type are that 1) it's a pointer, and
2) arithmetic on it should work as if the size of the object pointed