summaryrefslogtreecommitdiff
path: root/src/systime.h
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1992-09-13 13:08:15 +0000
committerJim Blandy <jimb@redhat.com>1992-09-13 13:08:15 +0000
commitcccd5c6a2c8568caad4df0c1206a40d56ca7133a (patch)
tree1cf726235faf32a24c6c98f5f46eb93eb7a6311d /src/systime.h
parentfbf77491da1f3572d953309bb6d9e495a58e6520 (diff)
downloademacs-cccd5c6a2c8568caad4df0c1206a40d56ca7133a.tar.gz
entered into RCS
Diffstat (limited to 'src/systime.h')
-rw-r--r--src/systime.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/systime.h b/src/systime.h
index 787c51d89ab..1741c8cc046 100644
--- a/src/systime.h
+++ b/src/systime.h
@@ -17,6 +17,14 @@ 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. */
+
+#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
@@ -25,12 +33,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <time.h>
#endif /* _h_BSDTYPES */
-#ifdef HAVE_TIMEVAL
-#ifndef NEED_TIME_H /* Some versions of HP/UX shouldn't have
- this included; time.h should do the trick
- instead. */
-#include <sys/time.h>
+/* AIX needs both <sys/time.h> and <time.h>. */
+#ifdef _AIX
+#include <time.h>
#endif
+
#endif