Removed "#ifndef__WATCOMC__". Use "#ifdef HAVE_SYS_TIME_H" instead.

This commit is contained in:
Gisle Vanem 2006-08-30 16:17:06 +00:00
parent 909941405f
commit c7aae10300
11 changed files with 13 additions and 11 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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