summaryrefslogtreecommitdiff
path: root/src/systime.h
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-05-11 00:07:51 +0000
committerJim Blandy <jimb@redhat.com>1993-05-11 00:07:51 +0000
commit5cbdb35688ab0b979c047eb48f980279d2440ba5 (patch)
tree1d5e7ba2628b60d8eab22669f86a998fc4a2db48 /src/systime.h
parent942990d1fb356401fe0e6afbde2d047df44ff1b8 (diff)
downloademacs-5cbdb35688ab0b979c047eb48f980279d2440ba5.tar.gz
* systime.h: Use the strategy from getdate.y to include the proper
combination of <time.h> and <sys/time.h>.
Diffstat (limited to 'src/systime.h')
-rw-r--r--src/systime.h20
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
along with GNU Emacs; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
-#if defined (HAVE_TIMEVAL) && !defined (NEED_TIME_H)
-/* NEED_TIME_H is necessary because some versions of HP/UX shouldn't
- have this included; time.h should do the trick instead. */
-
+#ifdef TM_IN_SYS_TIME
#include <sys/time.h>
-
#else
-
-/* _h_BSDTYPES is checked because on ISC unix, socket.h includes
- both time.h and sys/time.h, and the later file is protected
- from repeated inclusion. We just hope that other systems will
- use this guard either not at all, or similarly. */
-#ifndef _h_BSDTYPES
#include <time.h>
-#endif /* _h_BSDTYPES */
-
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
#endif
-
-/* AIX and SCO 3.2v4 need both <sys/time.h> and <time.h>. */
-#if defined (_AIX) || defined (SCO)
-#include <time.h>
#endif
/* SVr4 doesn't actually declare this in its #include files. */