diff options
| author | Jim Blandy | 1993-05-11 00:07:51 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-05-11 00:07:51 +0000 |
| commit | 5cbdb35688ab0b979c047eb48f980279d2440ba5 (patch) | |
| tree | 1d5e7ba2628b60d8eab22669f86a998fc4a2db48 /src | |
| parent | 942990d1fb356401fe0e6afbde2d047df44ff1b8 (diff) | |
| download | emacs-5cbdb35688ab0b979c047eb48f980279d2440ba5.tar.gz emacs-5cbdb35688ab0b979c047eb48f980279d2440ba5.zip | |
* systime.h: Use the strategy from getdate.y to include the proper
combination of <time.h> and <sys/time.h>.
Diffstat (limited to 'src')
| -rw-r--r-- | src/systime.h | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/src/systime.h b/src/systime.h index 165a9f43ed3..3f40b12c021 100644 --- a/src/systime.h +++ b/src/systime.h | |||
| @@ -17,27 +17,13 @@ You should have received a copy of the GNU General Public License | |||
| 17 | along with GNU Emacs; see the file COPYING. If not, write to | 17 | along with GNU Emacs; see the file COPYING. If not, write to |
| 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ |
| 19 | 19 | ||
| 20 | #if defined (HAVE_TIMEVAL) && !defined (NEED_TIME_H) | 20 | #ifdef TM_IN_SYS_TIME |
| 21 | /* NEED_TIME_H is necessary because some versions of HP/UX shouldn't | ||
| 22 | have this included; time.h should do the trick instead. */ | ||
| 23 | |||
| 24 | #include <sys/time.h> | 21 | #include <sys/time.h> |
| 25 | |||
| 26 | #else | 22 | #else |
| 27 | |||
| 28 | /* _h_BSDTYPES is checked because on ISC unix, socket.h includes | ||
| 29 | both time.h and sys/time.h, and the later file is protected | ||
| 30 | from repeated inclusion. We just hope that other systems will | ||
| 31 | use this guard either not at all, or similarly. */ | ||
| 32 | #ifndef _h_BSDTYPES | ||
| 33 | #include <time.h> | 23 | #include <time.h> |
| 34 | #endif /* _h_BSDTYPES */ | 24 | #ifdef HAVE_SYS_TIME_H |
| 35 | 25 | #include <sys/time.h> | |
| 36 | #endif | 26 | #endif |
| 37 | |||
| 38 | /* AIX and SCO 3.2v4 need both <sys/time.h> and <time.h>. */ | ||
| 39 | #if defined (_AIX) || defined (SCO) | ||
| 40 | #include <time.h> | ||
| 41 | #endif | 27 | #endif |
| 42 | 28 | ||
| 43 | /* SVr4 doesn't actually declare this in its #include files. */ | 29 | /* SVr4 doesn't actually declare this in its #include files. */ |