aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/setup.h2
-rw-r--r--lib/timeval.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/setup.h b/lib/setup.h
index ca822c396..f89c82e5f 100644
--- a/lib/setup.h
+++ b/lib/setup.h
@@ -109,7 +109,7 @@
#define FALSE 0
#endif
-#if !defined(__cplusplus) && !defined(__BEOS__) && !defined(typedef_bool)
+#if !defined(__cplusplus) && !defined(__BEOS__) && !defined(__ECOS) && !defined(typedef_bool)
typedef unsigned char bool;
#define typedef_bool
#endif
diff --git a/lib/timeval.h b/lib/timeval.h
index f136a56d9..6be5e4276 100644
--- a/lib/timeval.h
+++ b/lib/timeval.h
@@ -38,7 +38,8 @@
#ifndef HAVE_GETTIMEOFDAY
#if !defined(_WINSOCKAPI_) && !defined(__MINGW32__) && !defined(_AMIGASF) && \
- !defined(__LCC__) && !defined(__WATCOMC__) && !defined(__POCC__)
+ !defined(__LCC__) && !defined(__WATCOMC__) && !defined(__POCC__) && \
+ !defined(__ECOS)
struct timeval {
long tv_sec;
long tv_usec;