mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
Merge pull request #1534 from weidi/master
Merge pull request #1534: Fix build error on alpine
This commit is contained in:
commit
034aae5a70
23
.github/workflows/musl.yml
vendored
Normal file
23
.github/workflows/musl.yml
vendored
Normal 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
|
@ -49,7 +49,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef UNIX_LINUX
|
#ifdef UNIX_LINUX
|
||||||
#include <linux/if_packet.h>
|
#include <netpacket/packet.h>
|
||||||
|
|
||||||
struct my_tpacket_auxdata
|
struct my_tpacket_auxdata
|
||||||
{
|
{
|
||||||
|
@ -14,11 +14,16 @@
|
|||||||
#ifdef OS_UNIX
|
#ifdef OS_UNIX
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
|
|
||||||
|
#ifdef UNIX_LINUX
|
||||||
|
#include <pthread.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef UNIX_OPENBSD
|
#ifdef UNIX_OPENBSD
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// Dynamic Value
|
// Dynamic Value
|
||||||
struct DYN_VALUE
|
struct DYN_VALUE
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user