aboutsummaryrefslogtreecommitdiffstats
path: root/community/chromium/swiftshader.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-06-09 13:36:10 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2017-06-09 13:36:43 +0200
commit4358dca0f77dcc6bd073e6f1e55e5c59c89e6c1b (patch)
treeaf2034ce508ba4bf4e4daab19f5e65798f46dc27 /community/chromium/swiftshader.patch
parent117de5a063091790a09ecbfc08cb4ae97b25a869 (diff)
downloadaports-4358dca0f77dcc6bd073e6f1e55e5c59c89e6c1b.tar.bz2
aports-4358dca0f77dcc6bd073e6f1e55e5c59c89e6c1b.tar.xz
community/chromium: upgrade to 59.0.3071.86
Diffstat (limited to 'community/chromium/swiftshader.patch')
-rw-r--r--community/chromium/swiftshader.patch86
1 files changed, 86 insertions, 0 deletions
diff --git a/community/chromium/swiftshader.patch b/community/chromium/swiftshader.patch
new file mode 100644
index 0000000000..bb133d1cc2
--- /dev/null
+++ b/community/chromium/swiftshader.patch
@@ -0,0 +1,86 @@
+diff --git a/third_party/swiftshader/src/Common/Socket.cpp b/third_party/swiftshader/src/Common/Socket.cpp
+index a19f574..3e6655d 100644
+--- a/third_party/swiftshader/src/Common/Socket.cpp
++++ third_party/swiftshader/src/Common/Socket.cpp
+@@ -17,6 +17,7 @@
+ #if defined(_WIN32)
+ #include <ws2tcpip.h>
+ #else
++ #include <sys/select.h>
+ #include <unistd.h>
+ #include <netdb.h>
+ #include <netinet/in.h>
+diff --git a/third_party/swiftshader/third_party/LLVM/include-linux/llvm/Config/config.h b/third_party/swiftshader/third_party/LLVM/include-linux/llvm/Config/config.h
+index 509bc26..6522713 100644
+--- a/third_party/swiftshader/third_party/LLVM/include-linux/llvm/Config/config.h
++++ third_party/swiftshader/third_party/LLVM/include-linux/llvm/Config/config.h
+@@ -125,7 +125,7 @@
+ #define HAVE_ERROR_T 1
+
+ /* Define to 1 if you have the <execinfo.h> header file. */
+-#define HAVE_EXECINFO_H 1
++/* #undef HAVE_EXECINFO_H */
+
+ /* Define to 1 if you have the <fcntl.h> header file. */
+ #define HAVE_FCNTL_H 1
+@@ -240,10 +240,10 @@
+ /* #undef HAVE_MACH_O_DYLD_H */
+
+ /* Define if mallinfo() is available on this platform. */
+-#define HAVE_MALLINFO 1
++/* #undef HAVE_MALLINFO */
+
+ /* Define to 1 if you have the <malloc.h> header file. */
+-#define HAVE_MALLOC_H 1
++/* #undef HAVE_MALLOC_H */
+
+ /* Define to 1 if you have the <malloc/malloc.h> header file. */
+ /* #undef HAVE_MALLOC_MALLOC_H */
+diff --git a/third_party/swiftshader/third_party/LLVM/lib/Support/DynamicLibrary.cpp b/third_party/swiftshader/third_party/LLVM/lib/Support/DynamicLibrary.cpp
+index bd68083..f703e13 100644
+--- a/third_party/swiftshader/third_party/LLVM/lib/Support/DynamicLibrary.cpp
++++ third_party/swiftshader/third_party/LLVM/lib/Support/DynamicLibrary.cpp
+@@ -160,7 +160,7 @@ void* DynamicLibrary::SearchForAddressOfSymbol(const char *symbolName) {
+ // On linux we have a weird situation. The stderr/out/in symbols are both
+ // macros and global variables because of standards requirements. So, we
+ // boldly use the EXPLICIT_SYMBOL macro without checking for a #define first.
+-#if defined(__linux__) && !defined(__ANDROID__)
++#if defined(__GLIBC__)
+ {
+ EXPLICIT_SYMBOL(stderr);
+ EXPLICIT_SYMBOL(stdout);
+diff --git a/third_party/swiftshader/third_party/llvm-subzero/build/Linux/include/llvm/Config/config.h b/third_party/swiftshader/third_party/llvm-subzero/build/Linux/include/llvm/Config/config.h
+index e14edbd..8d7e41e 100644
+--- a/third_party/swiftshader/third_party/llvm-subzero/build/Linux/include/llvm/Config/config.h
++++ third_party/swiftshader/third_party/llvm-subzero/build/Linux/include/llvm/Config/config.h
+@@ -14,7 +14,7 @@
+ #define ENABLE_CRASH_OVERRIDES 1
+
+ /* Define to 1 if you have the `backtrace' function. */
+-#define HAVE_BACKTRACE 1
++/* #undef HAVE_BACKTRACE */
+
+ /* Define to 1 if you have the <CrashReporterClient.h> header file. */
+ /* #undef HAVE_CRASHREPORTERCLIENT_H */
+@@ -55,7 +55,7 @@
+ #define HAVE_ERRNO_H 1
+
+ /* Define to 1 if you have the <execinfo.h> header file. */
+-#define HAVE_EXECINFO_H 1
++/* #undef HAVE_EXECINFO_H */
+
+ /* Define to 1 if you have the <fcntl.h> header file. */
+ #define HAVE_FCNTL_H 1
+@@ -130,10 +130,10 @@
+ /* #undef HAVE_MALLCTL */
+
+ /* Define to 1 if you have the `mallinfo' function. */
+-#define HAVE_MALLINFO 1
++/* #undef HAVE_MALLINFO */
+
+ /* Define to 1 if you have the <malloc.h> header file. */
+-#define HAVE_MALLOC_H 1
++/* #undef HAVE_MALLOC_H */
+
+ /* Define to 1 if you have the <malloc/malloc.h> header file. */
+ /* #undef HAVE_MALLOC_MALLOC_H */