diff options
author | Victor Diego Alegandro Diaz Urbaneja <sodomon2@gmail.com> | 2020-01-31 02:31:04 -0400 |
---|---|---|
committer | Rasmus Thomsen <oss@cogitri.dev> | 2020-01-31 21:32:55 +0100 |
commit | d6358b30f8c462da588d281d3e615f18f6e1ca33 (patch) | |
tree | 7e0cd1a2a2c5fef937abc4a36c3011950b08f9d0 /testing/dhewm3/fix-musl.patch | |
parent | 50bcf01e59037ed43622fa04475ff6aeb34021eb (diff) | |
download | aports-d6358b30f8c462da588d281d3e615f18f6e1ca33.tar.bz2 aports-d6358b30f8c462da588d281d3e615f18f6e1ca33.tar.xz |
testing/dhewm3: new aport
Doom 3 engine with native 64-bit support, SDL, and OpenAL
https://dhewm3.org/
Diffstat (limited to 'testing/dhewm3/fix-musl.patch')
-rw-r--r-- | testing/dhewm3/fix-musl.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/testing/dhewm3/fix-musl.patch b/testing/dhewm3/fix-musl.patch new file mode 100644 index 0000000000..f4b33eb0c5 --- /dev/null +++ b/testing/dhewm3/fix-musl.patch @@ -0,0 +1,31 @@ +--- a/sys/posix/posix_main.cpp ++++ b/sys/posix/posix_main.cpp +@@ -362,7 +362,7 @@ + static const int crashSigs[] = { SIGILL, SIGABRT, SIGFPE, SIGSEGV }; + static const char* crashSigNames[] = { "SIGILL", "SIGABRT", "SIGFPE", "SIGSEGV" }; + +-#if defined(__linux__) || defined(__FreeBSD__) || defined(__APPLE__) ++#if ( defined(__linux__) && defined(__GLIBC__) ) || defined(__FreeBSD__) || defined(__APPLE__) + // TODO: https://github.com/ianlancetaylor/libbacktrace looks interesting and also supports windows apparently + #define D3_HAVE_BACKTRACE + #include <execinfo.h> +--- a/sys/posix/posix_net.cpp ++++ b/sys/posix/posix_net.cpp +@@ -644,7 +644,7 @@ + return -1; + } + +-#if defined(_GNU_SOURCE) ++#if defined(_GNU_SOURCE) && defined(TEMP_FAILURE_RETRY) + // handle EINTR interrupted system call with TEMP_FAILURE_RETRY - this is probably GNU libc specific + if ( ( nbytes = TEMP_FAILURE_RETRY( read( fd, data, size ) ) ) == -1 ) { + #else +@@ -701,7 +701,7 @@ + return -1; + } + +-#if defined(_GNU_SOURCE) ++#if defined(_GNU_SOURCE) && defined(TEMP_FAILURE_RETRY) + // handle EINTR interrupted system call with TEMP_FAILURE_RETRY - this is probably GNU libc specific + if ( ( nbytes = TEMP_FAILURE_RETRY ( write( fd, data, size ) ) ) == -1 ) { + #else |