summaryrefslogtreecommitdiffstats
path: root/sdlmame/0002-glibc-musl-fixes.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sdlmame/0002-glibc-musl-fixes.patch')
-rw-r--r--sdlmame/0002-glibc-musl-fixes.patch27
1 files changed, 24 insertions, 3 deletions
diff --git a/sdlmame/0002-glibc-musl-fixes.patch b/sdlmame/0002-glibc-musl-fixes.patch
index 03ffde3..c363cdb 100644
--- a/sdlmame/0002-glibc-musl-fixes.patch
+++ b/sdlmame/0002-glibc-musl-fixes.patch
@@ -1,6 +1,8 @@
+diff --git a/3rdparty/asio/include/asio/detail/config.hpp b/3rdparty/asio/include/asio/detail/config.hpp
+index 7bd6a94..f683226 100644
--- a/3rdparty/asio/include/asio/detail/config.hpp
+++ b/3rdparty/asio/include/asio/detail/config.hpp
-@@ -877,9 +877,7 @@
+@@ -877,9 +877,7 @@
# endif // !defined(ASIO_HAS_EVENTFD)
# if !defined(ASIO_HAS_TIMERFD)
# if defined(ASIO_HAS_EPOLL)
@@ -10,6 +12,8 @@
# endif // defined(ASIO_HAS_EPOLL)
# endif // !defined(ASIO_HAS_TIMERFD)
#endif // defined(__linux__)
+diff --git a/3rdparty/asio/include/asio/detail/impl/eventfd_select_interrupter.ipp b/3rdparty/asio/include/asio/detail/impl/eventfd_select_interrupter.ipp
+index 152bffd..005d45a 100644
--- a/3rdparty/asio/include/asio/detail/impl/eventfd_select_interrupter.ipp
+++ b/3rdparty/asio/include/asio/detail/impl/eventfd_select_interrupter.ipp
@@ -23,11 +23,7 @@
@@ -25,7 +29,7 @@
#include "asio/detail/cstdint.hpp"
#include "asio/detail/eventfd_select_interrupter.hpp"
#include "asio/detail/throw_error.hpp"
-@@ -45,15 +41,7 @@
+@@ -45,15 +41,7 @@ eventfd_select_interrupter::eventfd_select_interrupter()
void eventfd_select_interrupter::open_descriptors()
{
@@ -42,7 +46,7 @@
write_descriptor_ = read_descriptor_ =
::eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK);
# else // defined(EFD_CLOEXEC) && defined(EFD_NONBLOCK)
-@@ -69,7 +57,6 @@
+@@ -69,7 +57,6 @@ void eventfd_select_interrupter::open_descriptors()
::fcntl(read_descriptor_, F_SETFD, FD_CLOEXEC);
}
}
@@ -50,3 +54,20 @@
if (read_descriptor_ == -1)
{
+diff --git a/src/lib/netlist/plib/pexception.cpp b/src/lib/netlist/plib/pexception.cpp
+index 282acfe..585cc7a 100644
+--- a/src/lib/netlist/plib/pexception.cpp
++++ b/src/lib/netlist/plib/pexception.cpp
+@@ -10,11 +10,8 @@
+ #include "pexception.h"
+ #include "pfmtlog.h"
+
+-#if (defined(__x86_64__) || defined(__i386__)) && defined(__linux__)
+-#define HAS_FEENABLE_EXCEPT (1)
+-#else
++// musl does not have gnuisms
+ #define HAS_FEENABLE_EXCEPT (0)
+-#endif
+
+ namespace plib {
+ //============================================================