mirror of
https://github.com/decompals/wibo.git
synced 2025-12-18 01:15:37 +00:00
Fix Alpine and Ubuntu builds
This commit is contained in:
@@ -19,6 +19,7 @@ RUN apt-get update \
|
||||
libc6-dev-i386 \
|
||||
libclang-dev \
|
||||
linux-libc-dev-i386-cross \
|
||||
lld \
|
||||
llvm \
|
||||
make \
|
||||
ninja-build \
|
||||
@@ -46,6 +47,7 @@ RUN cmake -S /wibo -B /wibo/build -G Ninja \
|
||||
-DCMAKE_AR:PATH=/usr/bin/llvm-ar \
|
||||
-DCMAKE_RANLIB:PATH=/usr/bin/llvm-ranlib \
|
||||
-DCMAKE_BUILD_TYPE:STRING="$BUILD_TYPE" \
|
||||
-DCMAKE_EXE_LINKER_FLAGS:STRING="-m32 -fuse-ld=lld" \
|
||||
-DWIBO_ENABLE_LIBURING:BOOL=ON \
|
||||
-DWIBO_ENABLE_LTO:STRING="$ENABLE_LTO" \
|
||||
-DWIBO_VERSION:STRING="$WIBO_VERSION" \
|
||||
|
||||
@@ -12,12 +12,16 @@
|
||||
#include <cstring>
|
||||
#include <fcntl.h>
|
||||
#include <limits>
|
||||
#include <linux/prctl.h>
|
||||
#include <map>
|
||||
#include <mutex>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
// Alpine hack: rename duplicate prctl_mm_map (sys/prctl.h also includes it)
|
||||
#define prctl_mm_map _prctl_mm_map
|
||||
#include <linux/prctl.h>
|
||||
#undef prctl_mm_map
|
||||
|
||||
#include <mimalloc.h>
|
||||
#include <mimalloc/internal.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
Reference in New Issue
Block a user