diff options
| author | Roland McGrath | 1993-07-22 18:55:19 +0000 |
|---|---|---|
| committer | Roland McGrath | 1993-07-22 18:55:19 +0000 |
| commit | b1814de2503daf2c324cd9c8cef57cb6640b6d85 (patch) | |
| tree | 2a297c503d933c82ff7dd1c71b2e4509cd64fa15 /src | |
| parent | d76b8d38bcd82d5f5fdea9d7b0db1749ef7dff5a (diff) | |
| download | emacs-b1814de2503daf2c324cd9c8cef57cb6640b6d85.tar.gz emacs-b1814de2503daf2c324cd9c8cef57cb6640b6d85.zip | |
[_LIBC]: Just include <sys/resource.h>, and skip hairy #ifdef mess.
Diffstat (limited to 'src')
| -rw-r--r-- | src/mem-limits.h | 8 |
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 | |||
| 17 | along with GNU Emacs; see the file COPYING. If not, write to | 17 | along with GNU Emacs; see the file COPYING. If not, write to |
| 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ |
| 19 | 19 | ||
| 20 | #ifdef _LIBC | ||
| 21 | |||
| 22 | #include <sys/resource.h> | ||
| 23 | |||
| 24 | #else | ||
| 25 | |||
| 20 | #if defined(__osf__) && (defined(__mips) || defined(mips)) | 26 | #if defined(__osf__) && (defined(__mips) || defined(mips)) |
| 21 | #include <sys/time.h> | 27 | #include <sys/time.h> |
| 22 | #include <sys/resource.h> | 28 | #include <sys/resource.h> |
| @@ -35,6 +41,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 35 | #include <sys/resource.h> | 41 | #include <sys/resource.h> |
| 36 | #endif /* BSD4_2 */ | 42 | #endif /* BSD4_2 */ |
| 37 | 43 | ||
| 44 | #endif /* _LIBC */ | ||
| 45 | |||
| 38 | #ifdef emacs | 46 | #ifdef emacs |
| 39 | /* The important properties of this type are that 1) it's a pointer, and | 47 | /* The important properties of this type are that 1) it's a pointer, and |
| 40 | 2) arithmetic on it should work as if the size of the object pointed | 48 | 2) arithmetic on it should work as if the size of the object pointed |