mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
llvm: unbreak native musl build (lldb): needs fcntl.h for O_RDWR.
This commit is contained in:
parent
072a9599c1
commit
28e4fd2b7d
2 changed files with 15 additions and 0 deletions
10
srcpkgs/llvm/files/patches/lldb/fix-musl.patch
Normal file
10
srcpkgs/llvm/files/patches/lldb/fix-musl.patch
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
--- source/Core/ConnectionSharedMemory.cpp.orig 2015-05-07 10:52:36.554392575 +0200
|
||||||
|
+++ source/Core/ConnectionSharedMemory.cpp 2015-05-07 10:52:51.674373757 +0200
|
||||||
|
@@ -16,6 +16,7 @@
|
||||||
|
#ifdef _WIN32
|
||||||
|
#include "lldb/Host/windows/windows.h"
|
||||||
|
#else
|
||||||
|
+#include <fnctl.h> /* O_RDRW */
|
||||||
|
#include <sys/file.h>
|
||||||
|
#include <sys/mman.h>
|
||||||
|
#include <sys/stat.h>
|
|
@ -53,6 +53,11 @@ post_extract() {
|
||||||
patch -sNp0 -i ${i}
|
patch -sNp0 -i ${i}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
cd ${XBPS_BUILDDIR}/lldb-${version}.src
|
||||||
|
for i in ${FILESDIR}/patches/lldb/*.patch; do
|
||||||
|
patch -sNp0 -i ${i}
|
||||||
|
done
|
||||||
|
|
||||||
# Move clang files into the llvm source.
|
# Move clang files into the llvm source.
|
||||||
if [ -d ${XBPS_BUILDDIR}/cfe-${version}.src ]; then
|
if [ -d ${XBPS_BUILDDIR}/cfe-${version}.src ]; then
|
||||||
mv ${XBPS_BUILDDIR}/cfe-${version}.src ${wrksrc}/tools/clang
|
mv ${XBPS_BUILDDIR}/cfe-${version}.src ${wrksrc}/tools/clang
|
||||||
|
|
Loading…
Add table
Reference in a new issue