llvm: unbreak native musl build (lldb): needs fcntl.h for O_RDWR.

This commit is contained in:
Juan RP 2015-05-07 10:55:15 +02:00
parent 072a9599c1
commit 28e4fd2b7d
2 changed files with 15 additions and 0 deletions

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

View file

@ -53,6 +53,11 @@ post_extract() {
patch -sNp0 -i ${i}
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.
if [ -d ${XBPS_BUILDDIR}/cfe-${version}.src ]; then
mv ${XBPS_BUILDDIR}/cfe-${version}.src ${wrksrc}/tools/clang