1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-25 09:39:52 +03:00

Merge pull request #1534 from weidi/master

Merge pull request #1534: Fix build error on alpine
This commit is contained in:
Ilya Shipitsin 2021-12-27 09:53:58 +03:00 committed by GitHub
commit 034aae5a70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 1 deletions

23
.github/workflows/musl.yml vendored Normal file
View File

@ -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

View File

@ -49,7 +49,7 @@
#endif
#ifdef UNIX_LINUX
#include <linux/if_packet.h>
#include <netpacket/packet.h>
struct my_tpacket_auxdata
{

View File

@ -14,11 +14,16 @@
#ifdef OS_UNIX
#include <netinet/in.h>
#ifdef UNIX_LINUX
#include <pthread.h>
#endif
#ifdef UNIX_OPENBSD
#include <pthread.h>
#endif
#endif
// Dynamic Value
struct DYN_VALUE
{