Commit 0b64236e authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Include <sys/time.h> explicitly whenever time_t is used.

Apparently this is needed for bionic libc.
parent 9bf6bd0b
...@@ -23,6 +23,7 @@ THE SOFTWARE. ...@@ -23,6 +23,7 @@ THE SOFTWARE.
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#include <sys/time.h>
#ifdef __linux #ifdef __linux
/* Defining it rather than including <linux/rtnetlink.h> because this /* Defining it rather than including <linux/rtnetlink.h> because this
......
...@@ -24,7 +24,7 @@ THE SOFTWARE. ...@@ -24,7 +24,7 @@ THE SOFTWARE.
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <sys/time.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h> #include <arpa/inet.h>
......
...@@ -23,6 +23,7 @@ THE SOFTWARE. ...@@ -23,6 +23,7 @@ THE SOFTWARE.
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/time.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>
......
...@@ -25,6 +25,7 @@ THE SOFTWARE. ...@@ -25,6 +25,7 @@ THE SOFTWARE.
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include <assert.h> #include <assert.h>
#include <sys/time.h>
#include "babeld.h" #include "babeld.h"
#include "util.h" #include "util.h"
......
...@@ -23,6 +23,7 @@ THE SOFTWARE. ...@@ -23,6 +23,7 @@ THE SOFTWARE.
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <sys/time.h>
#include "babeld.h" #include "babeld.h"
#include "util.h" #include "util.h"
......
...@@ -25,6 +25,7 @@ THE SOFTWARE. ...@@ -25,6 +25,7 @@ THE SOFTWARE.
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <assert.h> #include <assert.h>
#include <sys/time.h>
#include <netinet/in.h> #include <netinet/in.h>
#include "babeld.h" #include "babeld.h"
......
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