Mercurial > emacs
diff src/systime.h @ 1128:2a2dabcf877b
entered into RCS
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Sun, 13 Sep 1992 13:08:15 +0000 |
parents | 1dba066c1e0a |
children | ca102ce0c00d |
line wrap: on
line diff
--- a/src/systime.h Sun Sep 13 12:54:09 1992 +0000 +++ b/src/systime.h Sun Sep 13 13:08:15 1992 +0000 @@ -17,6 +17,14 @@ 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 @@ #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