Merge pull request #1534: Fix build error on alpine
@@ -0,0 +1,23 @@
+name: alpine/musl
+
+on: [push, pull_request]
+permissions:
+ contents: read
+jobs:
+ musl:
+ name: gcc
+ runs-on: ubuntu-latest
+ container:
+ image: alpine:latest
+ steps:
+ - uses: actions/checkout@v1
+ with:
+ submodules: true
+ - name: Install dependencies
+ run: apk add binutils --no-cache build-base readline-dev openssl-dev ncurses-dev git cmake zlib-dev libsodium-dev gnu-libiconv
+ - name: Configure
+ run: ./configure
+ - name: make
+ run: make -C build
@@ -49,7 +49,7 @@
#endif
#ifdef UNIX_LINUX
-#include <linux/if_packet.h>
+#include <netpacket/packet.h>
struct my_tpacket_auxdata
{
@@ -14,11 +14,16 @@
#ifdef OS_UNIX
#include <netinet/in.h>
+#ifdef UNIX_LINUX
+#include <pthread.h>
+#endif
#ifdef UNIX_OPENBSD
#include <pthread.h>
// Dynamic Value
struct DYN_VALUE