summaryrefslogtreecommitdiff
path: root/src
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
commitb1814de2503daf2c324cd9c8cef57cb6640b6d85 (patch)
tree2a297c503d933c82ff7dd1c71b2e4509cd64fa15 /src
parentd76b8d38bcd82d5f5fdea9d7b0db1749ef7dff5a (diff)
downloademacs-b1814de2503daf2c324cd9c8cef57cb6640b6d85.tar.gz
[_LIBC]: Just include <sys/resource.h>, and skip hairy #ifdef mess.
Diffstat (limited to 'src')
-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