#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <assert.h>
#include <ctype.h>
#include <errno.h>
#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