]> code.delx.au - gnu-emacs/commitdiff
Move #include "systime.h" before <sys/resource.h>.
authorEli Zaretskii <eliz@gnu.org>
Mon, 8 Nov 2004 12:04:07 +0000 (12:04 +0000)
committerEli Zaretskii <eliz@gnu.org>
Mon, 8 Nov 2004 12:04:07 +0000 (12:04 +0000)
Don't include <sys/time.h> explicitly.
Include <stdio.h> unconditionally, not just on MacOS.

src/editfns.c

index e7a2372e9121213312bfe22ad9263c9f1f140342..45b7caa280b26c2369e740f519eed3927535b494 100644 (file)
@@ -22,6 +22,7 @@ Boston, MA 02111-1307, USA.  */
 
 #include <config.h>
 #include <sys/types.h>
+#include <stdio.h>
 
 #ifdef VMS
 #include "vms-pwd.h"
@@ -33,15 +34,10 @@ Boston, MA 02111-1307, USA.  */
 #include <unistd.h>
 #endif
 
-/* Without this, sprintf on Mac OS Classic will produce wrong
-   result.  */
-#ifdef MAC_OS8
-#include <stdio.h>
-#endif
-
-#ifdef HAVE_SYS_TIME_H
-#include <sys/time.h>
-#endif
+/* systime.h includes <sys/time.h> which, on some systems, is required
+   for <sys/resource.h>; thus systime.h must be included before
+   <sys/resource.h> */
+#include "systime.h"
 
 #if defined HAVE_SYS_RESOURCE_H
 #include <sys/resource.h>
@@ -57,8 +53,6 @@ Boston, MA 02111-1307, USA.  */
 #include "frame.h"
 #include "window.h"
 
-#include "systime.h"
-
 #ifdef STDC_HEADERS
 #include <float.h>
 #define MAX_10_EXP     DBL_MAX_10_EXP