ports/devel/glib20/files/patch-gio_gresource-tool.c
2025-04-24 11:45:47 +03:00

15 lines
351 B
C

--- gio/gresource-tool.c.orig 2025-04-03 14:38:51 UTC
+++ gio/gresource-tool.c
@@ -31,8 +31,10 @@
#include <locale.h>
#ifdef HAVE_LIBELF
-#include <libelf.h>
-#include <gelf.h>
+#include </usr/include/libelf.h>
+// fool libelf from ports to not include its libelf.h
+#define _LIBELF_H 1
+#include </usr/include/gelf.h>
#endif
#ifdef HAVE_MMAP