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