Commit 2eef5e71 authored by Jordi Mallach's avatar Jordi Mallach 🐗

Fix dirent.h include for kFreeBSD builds.

parent 564799e5
mame (0.182-1) UNRELEASED; urgency=medium
* New upstream release.
* Add kfreebsd_dirent.h_path.patch to fix dirent.h include path for
kFreeBSD builds (thanks Steven Chamberlain; closes: #852507).
-- Jordi Mallach <jordi@debian.org> Wed, 25 Jan 2017 13:03:04 +0100
......
diff --git a/3rdparty/bx/include/compat/freebsd/dirent.h b/3rdparty/bx/include/compat/freebsd/dirent.h
index b4f586b..5f52d2d 100644
--- a/3rdparty/bx/include/compat/freebsd/dirent.h
+++ b/3rdparty/bx/include/compat/freebsd/dirent.h
@@ -1 +1,5 @@
-#include <sys/dirent.h>
+#if defined(__GLIBC__)
+# include_next <dirent.h>
+#else
+# include <sys/dirent.h>
+#endif
......@@ -2,3 +2,4 @@ genie_freebsd_target.patch
hurd.patch
sphinx_mathjax_location.patch
m68000_archopts.patch
kfreebsd_dirent.h_path.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment