Add bits needed to support timestamps and stats functions.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
#include <errno.h>
#include <stdlib.h>
#include <kaboom.h>
+#include <stdio.h>
#define BYTE_ORDER LITTLE_ENDIAN
#define PACK_STRUCT_STRUCT __packed
+#if 1
+#define LWIP_PLATFORM_DIAG(x) do { printf x; } while(0)
+#define LWIP_PLATFORM_ASSERT(x) do { printf("%s", (x)); kaboom(); } while(0)
+#else
#define LWIP_PLATFORM_DIAG(x) ((void)0) /* For now... */
#define LWIP_PLATFORM_ASSERT(x) kaboom()
+#endif
#define U16_F PRIu16
#define S16_F PRId16
typedef struct thread *sys_thread_t;
#define sys_sem_signal(x) sem_up(x)
+#define sys_now ms_timer
#define SYS_MBOX_NULL NULL
#define SYS_SEM_NULL NULL