bcc: fix musl

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2019-06-02 00:01:10 +02:00
parent b8b5abab67
commit 1953ed2488
No known key found for this signature in database
GPG key ID: DE55AD8DBEBB4EE8

View file

@ -48,3 +48,15 @@
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
--- src/cc/libbpf/src/hashmap.h.orig 2019-05-29 19:27:27.000000000 +0200
+++ src/cc/libbpf/src/hashmap.h 2019-06-01 23:57:31.458324372 +0200
@@ -10,6 +10,9 @@
#include <stdbool.h>
#include <stddef.h>
+#if !defined(__GLIBC__)
+#include <bits/reg.h> /* for __WORDSIZE */
+#endif
#include "libbpf_internal.h"
static inline size_t hash_bits(size_t h, int bits)