vlib: fix build with musl
Type: fix When building with musl, some transitive includes from glibc are not present. This patch adds direct includes for the necessary types, and it also defines _GNU_SOURCE to ensure that the socket types are complete. Change-Id: Ic69c307b9515fec764c32906b5bc7f1fb34f2525 Signed-off-by: Nathan Moos <nmoos@cisco.com>
This commit is contained in:
committed by
Damjan Marion
parent
2e4813fe8f
commit
bfa0398f7a
@@ -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 \
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#define __USE_GNU
|
||||
#define _GNU_SOURCE
|
||||
#include <sys/socket.h>
|
||||
|
||||
#include <svm/ssvm.h>
|
||||
|
||||
Reference in New Issue
Block a user