[mame] 04/05: Fix dirent.h include for kFreeBSD builds.
Jordi Mallach
jordi at moszumanska.debian.org
Wed Jan 25 17:25:08 UTC 2017
This is an automated email from the git hooks/post-receive script.
jordi pushed a commit to branch master
in repository mame.
commit 2eef5e7151e44c8682964564f960ec12042e6324
Author: Jordi Mallach <jordi at debian.org>
Date: Wed Jan 25 17:38:38 2017 +0100
Fix dirent.h include for kFreeBSD builds.
---
debian/changelog | 2 ++
debian/patches/kfreebsd_dirent.h_path.patch | 11 +++++++++++
debian/patches/series | 1 +
3 files changed, 14 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 5ff5c62..5288d83 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
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 at debian.org> Wed, 25 Jan 2017 13:03:04 +0100
diff --git a/debian/patches/kfreebsd_dirent.h_path.patch b/debian/patches/kfreebsd_dirent.h_path.patch
new file mode 100644
index 0000000..5dbbd85
--- /dev/null
+++ b/debian/patches/kfreebsd_dirent.h_path.patch
@@ -0,0 +1,11 @@
+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
diff --git a/debian/patches/series b/debian/patches/series
index ec02444..433d76d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ genie_freebsd_target.patch
hurd.patch
sphinx_mathjax_location.patch
m68000_archopts.patch
+kfreebsd_dirent.h_path.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mame.git
More information about the Pkg-games-commits
mailing list