--- libaitio/example/bpf.c 2013/07/09 00:35:35 1.3 +++ libaitio/example/bpf.c 2016/08/11 16:23:43 1.4.12.2 @@ -1,3 +1,10 @@ +#ifdef __linux__ +int main() +{ + return 0; +} +#else + #include #include #include @@ -255,6 +262,7 @@ main(int argc, char **argv) char ch, mode = 'R'; struct timespec ts_start, ts_end; void *bz = NULL; + ether_addr_t ea; while ((ch = getopt(argc, argv, "hvwzs:p:f:")) != -1) switch (ch) { @@ -370,3 +378,5 @@ main(int argc, char **argv) printf("0.%09lu per/iteration\n", ts_end.tv_sec + ts_end.tv_nsec / i); return 0; } + +#endif