1 --- a/shared/wl_linux.c
2 +++ b/shared/wl_linux.c
13 #include <linux/types.h>
15 -typedef u_int64_t u64;
16 -typedef u_int32_t u32;
17 -typedef u_int16_t u16;
19 +typedef uint64_t u64;
20 +typedef uint32_t u32;
21 +typedef uint16_t u16;
23 #include <linux/sockios.h>
24 #include <linux/ethtool.h>
26 --- a/shared/linux_timer.c
27 +++ b/shared/linux_timer.c
28 @@ -125,7 +125,7 @@ void unblock_timer();
30 static struct event *event_queue = NULL;
31 static struct event *event_freelist;
32 -static uint g_granularity;
33 +static unsigned int g_granularity;
34 static int g_maxevents = 0;
46 #include <sys/ioctl.h>
47 @@ -263,3 +264,28 @@ wl_printlasterror(char *name)
48 fprintf(stderr, err_buf);
52 +static int in_assert; /* bss inits to 0. */
54 +void __assert(const char *assertion, const char * filename,
55 + unsigned int linenumber, register const char * function)
61 +#ifdef ASSERT_SHOW_PROGNAME
62 + "%s: %s: %d: %s: Assertion `%s' failed.\n", __uclibc_progname,
64 + "%s: %d: %s: Assertion `%s' failed.\n",
68 + /* Function name isn't available with some compilers. */
69 + ((function == NULL) ? "?function?" : function),
73 + /* shouldn't we? fflush(stderr); */