diff options
| author | Eli Zaretskii | 2004-11-08 12:04:07 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2004-11-08 12:04:07 +0000 |
| commit | 3c14598ca1769373ea8d71a21864f19c93cc5e90 (patch) | |
| tree | 59d4be2aa87b3cca2f3d8afff97de981535de1fe /src | |
| parent | 3c29dab149b9a9970f283be0e03428961079e938 (diff) | |
| download | emacs-3c14598ca1769373ea8d71a21864f19c93cc5e90.tar.gz emacs-3c14598ca1769373ea8d71a21864f19c93cc5e90.zip | |
Move #include "systime.h" before <sys/resource.h>.
Don't include <sys/time.h> explicitly.
Include <stdio.h> unconditionally, not just on MacOS.
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/editfns.c b/src/editfns.c index e7a2372e912..45b7caa280b 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -22,6 +22,7 @@ Boston, MA 02111-1307, USA. */ | |||
| 22 | 22 | ||
| 23 | #include <config.h> | 23 | #include <config.h> |
| 24 | #include <sys/types.h> | 24 | #include <sys/types.h> |
| 25 | #include <stdio.h> | ||
| 25 | 26 | ||
| 26 | #ifdef VMS | 27 | #ifdef VMS |
| 27 | #include "vms-pwd.h" | 28 | #include "vms-pwd.h" |
| @@ -33,15 +34,10 @@ Boston, MA 02111-1307, USA. */ | |||
| 33 | #include <unistd.h> | 34 | #include <unistd.h> |
| 34 | #endif | 35 | #endif |
| 35 | 36 | ||
| 36 | /* Without this, sprintf on Mac OS Classic will produce wrong | 37 | /* systime.h includes <sys/time.h> which, on some systems, is required |
| 37 | result. */ | 38 | for <sys/resource.h>; thus systime.h must be included before |
| 38 | #ifdef MAC_OS8 | 39 | <sys/resource.h> */ |
| 39 | #include <stdio.h> | 40 | #include "systime.h" |
| 40 | #endif | ||
| 41 | |||
| 42 | #ifdef HAVE_SYS_TIME_H | ||
| 43 | #include <sys/time.h> | ||
| 44 | #endif | ||
| 45 | 41 | ||
| 46 | #if defined HAVE_SYS_RESOURCE_H | 42 | #if defined HAVE_SYS_RESOURCE_H |
| 47 | #include <sys/resource.h> | 43 | #include <sys/resource.h> |
| @@ -57,8 +53,6 @@ Boston, MA 02111-1307, USA. */ | |||
| 57 | #include "frame.h" | 53 | #include "frame.h" |
| 58 | #include "window.h" | 54 | #include "window.h" |
| 59 | 55 | ||
| 60 | #include "systime.h" | ||
| 61 | |||
| 62 | #ifdef STDC_HEADERS | 56 | #ifdef STDC_HEADERS |
| 63 | #include <float.h> | 57 | #include <float.h> |
| 64 | #define MAX_10_EXP DBL_MAX_10_EXP | 58 | #define MAX_10_EXP DBL_MAX_10_EXP |