summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/helper/system.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/helper/system.h b/src/helper/system.h
index 07b0cb9f..169df1cb 100644
--- a/src/helper/system.h
+++ b/src/helper/system.h
@@ -59,6 +59,14 @@
#ifdef HAVE_SYS_POLL_H
#include <sys/poll.h>
#endif
+
+#ifdef __ECOS
+/* missing from eCos */
+#ifndef EFAULT
+#define EFAULT 14 /* Bad address */
+#endif
+#endif
+
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif