[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#852507: mame: FTBFS[kfreebsd]: wrong path for dirent.h



Source: mame
Version: 0.181-1
Tags: upstream patch
X-Debbugs-Cc: debian-bsd@lists.debian.org
User: debian-bsd@lists.debian.org
Usertags: kfreebsd

Hi!

mame/0.181-1 FTBFS on kfreebsd-* because:

| Compiling 3rdparty/bgfx/3rdparty/ocornut-imgui/imgui.cpp...
| In file included from ../../../../../3rdparty/bgfx/3rdparty/ocornut-imgui/widgets/file_list.inl:2:0,
|                  from ../../../../../3rdparty/bgfx/3rdparty/ocornut-imgui/imgui_user.inl:75,
|                  from ../../../../../3rdparty/bgfx/3rdparty/ocornut-imgui/imgui.cpp:9799:
| ../../../../../3rdparty/bx/include/compat/freebsd/dirent.h:1:24: fatal error: sys/dirent.h: No such file or directory

Attached is a simple patch for this.  It is similar to two other fixes
already applied upstream.  I'll take responsibility for upstreaming this
(in "bx" and then in mame).

My patch fixes only the issue described above.  I don't know yet if this
is the *only* reason for FTBFS because I'm still building it on falla.

Thanks!
Regards,
-- 
Steven Chamberlain
steven@pyro.eu.org
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

Attachment: signature.asc
Description: Digital signature


Reply to: