Mercurial > hg > xemacs-beta
comparison 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 |
comparison
equal
deleted
inserted
replaced
776:79940b592197 | 777:e65d9cf16707 |
---|---|
1 /* systime.h - System-dependent definitions for time manipulations. | 1 /* systime.h - System-dependent definitions for time manipulations. |
2 Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. | 2 Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. |
3 Copyright (C) 2001 Ben Wing. | 3 Copyright (C) 2001, 2002 Ben Wing. |
4 | 4 |
5 This file is part of XEmacs. | 5 This file is part of XEmacs. |
6 | 6 |
7 XEmacs is free software; you can redistribute it and/or modify it | 7 XEmacs is free software; you can redistribute it and/or modify it |
8 under the terms of the GNU General Public License as published by the | 8 under the terms of the GNU General Public License as published by the |
33 # else | 33 # else |
34 # include <time.h> | 34 # include <time.h> |
35 # endif | 35 # endif |
36 #endif | 36 #endif |
37 | 37 |
38 #if defined (CYGWIN) || defined (LINUX) | 38 #ifdef HAVE_SYS_TIMES_H |
39 /* #### why don't other systems have problems with this? need this | 39 /* Need this for struct tms */ |
40 for struct tms */ | |
41 # include <sys/times.h> | 40 # include <sys/times.h> |
42 #endif | 41 #endif |
43 | 42 |
44 /* select() is supposed to be (Unix98) defined in sys/time.h, | 43 /* select() is supposed to be (Unix98) defined in sys/time.h, |
45 but FreeBSD and Irix 5 put it in unistd.h instead. | 44 but FreeBSD and Irix 5 put it in unistd.h instead. |