Commit 7263af2f authored by Danilo Sabato's avatar Danilo Sabato Committed by Alessandro Rubini

arch-bare-linux: moved struct bare_timeval and NULL to global header

parent eba67ce4
......@@ -77,3 +77,12 @@ struct bare_ethhdr {
unsigned char h_source[6];
uint16_t h_proto;
} __attribute__((packed));
struct bare_timeval {
unsigned long tv_sec;
unsigned long tv_usec;
};
#ifndef NULL
#define NULL 0
#endif
......@@ -17,13 +17,6 @@ struct bare_fd_set {
#define FD_ZERO(p) memset(p, 0, sizeof(p))
#define FD_SET(bit, p) ((p)->bits[0] |= (1 << (bit)))
struct bare_timeval {
unsigned long tv_sec;
unsigned long tv_usec;
};
#define NULL 0
void bare_main_loop(struct pp_instance *ppi)
{
int delay_ms;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment