Watcom lacks <sys/time.h>.

This commit is contained in:
Gisle Vanem 2006-08-29 18:45:55 +00:00
parent 6de9732a88
commit 59cf6fd4f0
11 changed files with 21 additions and 1 deletions

View File

@ -25,7 +25,9 @@
#ifndef WIN32
/* headers for non-win32 */
#ifndef __WATCOMC__
#include <sys/time.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif

View File

@ -24,7 +24,7 @@
***************************************************************************/
#include <stdio.h>
#ifdef WIN32
#if defined(WIN32) || defined(__WATCOMC__)
#include <time.h>
#else
#include <sys/time.h>

View File

@ -46,7 +46,9 @@
#include <sys/socket.h>
#endif
#include <netinet/in.h>
#ifndef __WATCOMC__
#include <sys/time.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -48,7 +48,9 @@
#include <sys/socket.h>
#endif
#include <netinet/in.h>
#ifndef __WATCOMC__
#include <sys/time.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -48,7 +48,9 @@
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifndef __WATCOMC__
#include <sys/time.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -47,7 +47,9 @@
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifndef __WATCOMC__
#include <sys/time.h>
#endif
#ifdef HAVE_TIME_H
#ifdef TIME_WITH_SYS_TIME

View File

@ -45,7 +45,9 @@
#include <sys/socket.h>
#endif
#include <netinet/in.h>
#ifndef __WATCOMC__
#include <sys/time.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -45,7 +45,9 @@
#include <sys/socket.h>
#endif
#include <netinet/in.h>
#ifndef __WATCOMC__
#include <sys/time.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -33,8 +33,10 @@
#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
#include <time.h>
#else
#ifndef __WATCOMC__ /* todo: Add HAVE_SYS_TIME_H */
#include <sys/time.h>
#endif
#endif
#ifndef HAVE_GETTIMEOFDAY
#if !defined(_WINSOCKAPI_) && !defined(__MINGW32__) && !defined(_AMIGASF) && \

View File

@ -51,7 +51,9 @@
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifndef __WATCOMC__
#include <sys/time.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -46,7 +46,9 @@
#include <sys/socket.h>
#endif
#include <netinet/in.h>
#ifndef __WATCOMC__
#include <sys/time.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif