diff src/systime.h @ 777:e65d9cf16707

[xemacs-hg @ 2002-03-15 11:00:28 by ben] config.h.in, sysdep.c, sysfile.h, systime.h: add HAVE_SYS_TIMES_H and use it to include sys/times.h, used for struct tms in new POSIX() function times(). mule\mule-charset.el, obsolete.el, subr.el: Put back previously-deleted truncate-string-to-width. Move other non-Mule-specific stuff into subr.el or obsolete.el. configure.in: check for sys/times.h.
author ben
date Fri, 15 Mar 2002 11:00:56 +0000
parents 943eaba38521
children 804517e16990
line wrap: on
line diff
--- a/src/systime.h	Fri Mar 15 07:43:43 2002 +0000
+++ b/src/systime.h	Fri Mar 15 11:00:56 2002 +0000
@@ -1,6 +1,6 @@
 /* systime.h - System-dependent definitions for time manipulations.
    Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
-   Copyright (C) 2001 Ben Wing.
+   Copyright (C) 2001, 2002 Ben Wing.
 
 This file is part of XEmacs.
 
@@ -35,9 +35,8 @@
 # endif
 #endif
 
-#if defined (CYGWIN) || defined (LINUX)
-/* #### why don't other systems have problems with this?  need this
-   for struct tms */
+#ifdef HAVE_SYS_TIMES_H
+/* Need this for struct tms */
 # include <sys/times.h>
 #endif