diff src/systime.h @ 771:943eaba38521

[xemacs-hg @ 2002-03-13 08:51:24 by ben] The big ben-mule-21-5 check-in! Various files were added and deleted. See CHANGES-ben-mule. There are still some test suite failures. No crashes, though. Many of the failures have to do with problems in the test suite itself rather than in the actual code. I'll be addressing these in the next day or so -- none of the test suite failures are at all critical. Meanwhile I'll be trying to address the biggest issues -- i.e. build or run failures, which will almost certainly happen on various platforms. All comments should be sent to ben@xemacs.org -- use a Cc: if necessary when sending to mailing lists. There will be pre- and post- tags, something like pre-ben-mule-21-5-merge-in, and post-ben-mule-21-5-merge-in.
author ben
date Wed, 13 Mar 2002 08:54:06 +0000
parents af57a77cbc92
children e65d9cf16707
line wrap: on
line diff
--- a/src/systime.h	Fri Mar 08 13:33:14 2002 +0000
+++ b/src/systime.h	Wed Mar 13 08:54:06 2002 +0000
@@ -1,5 +1,6 @@
 /* systime.h - System-dependent definitions for time manipulations.
    Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
+   Copyright (C) 2001 Ben Wing.
 
 This file is part of XEmacs.
 
@@ -34,6 +35,12 @@
 # endif
 #endif
 
+#if defined (CYGWIN) || defined (LINUX)
+/* #### why don't other systems have problems with this?  need this
+   for struct tms */
+# include <sys/times.h>
+#endif
+
 /* select() is supposed to be (Unix98) defined in sys/time.h,
    but FreeBSD and Irix 5 put it in unistd.h instead.
    If we have it, including it can't hurt. */
@@ -71,6 +78,9 @@
 
 #ifdef WIN32_NATIVE
 # include <sys/utime.h>
+#ifdef emacs
+int mswindows_utime (Lisp_Object path, struct utimbuf *thymes);
+#endif
 #endif
 
 #if defined(HAVE_TZNAME) && !defined(WIN32_NATIVE) && !defined(CYGWIN)
@@ -236,10 +246,11 @@
 
 #ifdef emacs
 int set_file_times (Lisp_Object path, EMACS_TIME atime, EMACS_TIME mtime);
-#endif
-
 void get_process_times (double *user_time, double *system_time,
 			double *real_time);
+Intbyte *qxe_ctime (const time_t *value);
+
+#endif
 
 #ifdef WIN32_NATIVE