summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vlib/log.h1
-rw-r--r--src/vlibmemory/socket_client.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/vlib/log.h b/src/vlib/log.h
index a94c57a51eb..c3ebb8150ee 100644
--- a/src/vlib/log.h
+++ b/src/vlib/log.h
@@ -16,6 +16,7 @@
#ifndef included_vlib_log_h
#define included_vlib_log_h
+#include <sys/time.h>
#include <vppinfra/types.h>
#define foreach_vlib_log_level \
diff --git a/src/vlibmemory/socket_client.c b/src/vlibmemory/socket_client.c
index 8d9d7cefc0d..530a99677f4 100644
--- a/src/vlibmemory/socket_client.c
+++ b/src/vlibmemory/socket_client.c
@@ -19,6 +19,7 @@
#include <stdio.h>
#define __USE_GNU
+#define _GNU_SOURCE
#include <sys/socket.h>
#include <svm/ssvm.h>