diff options
author | Nathan Moos <nmoos@cisco.com> | 2021-01-15 14:32:07 -0800 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-01-20 15:19:36 +0000 |
commit | bfa0398f7a9f58a28d9b3f552b451da267a3c8a5 (patch) | |
tree | d61300ce485da3c9fb208aadaacc9326be2a9aa2 /src/vlibmemory/socket_client.c | |
parent | 2e4813fe8f2456438f7c60b1ba6055a7d62a047f (diff) |
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>
Diffstat (limited to 'src/vlibmemory/socket_client.c')
-rw-r--r-- | src/vlibmemory/socket_client.c | 1 |
1 files changed, 1 insertions, 0 deletions
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> |