Changes to support building for eCos 1.3.1. This has been tested with
authorDan Fandrich <dan@coneharvesters.com>
Wed, 19 Jul 2006 22:27:49 +0000 (22:27 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Wed, 19 Jul 2006 22:27:49 +0000 (22:27 +0000)
file: URLs only.

configure.ac
lib/setup.h
lib/timeval.h
src/setup.h

index 55a442f311e58ace195d562f38ffd1b644c119c2..e794273cad11e51c8bf7609026b919efca08a9cc 100644 (file)
@@ -373,6 +373,21 @@ then
              )
 fi
 
+if test "$HAVE_GETHOSTBYNAME" != "1"
+then
+  dnl This is for eCos with a stubbed DNS implementation
+  AC_MSG_CHECKING([for gethostbyname for eCos])
+  AC_TRY_LINK([
+#include <stdio.h>
+#include <netdb.h>],
+               [gethostbyname("www.dummysite.com");],
+               [ dnl worked!
+               AC_MSG_RESULT([yes])
+               HAVE_GETHOSTBYNAME="1"],
+               AC_MSG_RESULT(no)
+             )
+fi
+
 if test "$HAVE_GETHOSTBYNAME" != "1"
 then
   dnl gethostbyname in the net lib - for BeOS
index ca822c3966606ba0b0e3fc1a8b354386127dd4ac..f89c82e5fbaed90892d1f90e31735463a8b59c78 100644 (file)
 #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
index f136a56d9414e23c8a8d57a1cf56099dccb85c8f..6be5e4276a9cb9772d47f3c646f5c04ea399f3f1 100644 (file)
@@ -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;
index e911922c95334cdde2622efe2252c4e5796a64ee..78cb115933842593716ba634ebd40add18c05184 100644 (file)
 #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