mirror of
https://github.com/termux/termux-packages.git
synced 2025-05-10 03:25:52 +00:00
fix build with `libxml2` 2.14
Fixes this error when building with libxml2 2.14
src/xml_pyx.c:203:36: error: expected ')'
203 | pyxExternalSubsetHandler(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name,
| ^
Probably has something to do with this commit in libxml2
208f27f964
Co-authored-by: Robert Kirkman <rkirkman@termux.dev>
20 lines
703 B
Diff
20 lines
703 B
Diff
Fixes this error when building with libxml2 2.14
|
|
src/xml_pyx.c:203:36: error: expected ')'
|
|
203 | pyxExternalSubsetHandler(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name,
|
|
| ^
|
|
|
|
Probably has something to do with this commit in libxml2
|
|
https://github.com/GNOME/libxml2/commit/208f27f9641a59863ce1f7d4992df77f7eb0ea9d
|
|
|
|
--- a/src/xmlstar.h
|
|
+++ b/src/xmlstar.h
|
|
@@ -16,6 +16,8 @@
|
|
#include <libxml/xpathInternals.h>
|
|
#include <libxml/xmlreader.h>
|
|
|
|
+#define ATTRIBUTE_UNUSED __attribute__((unused))
|
|
+
|
|
typedef enum { /* EXIT_SUCCESS = 0, EXIT_FAILURE = 1, */
|
|
EXIT_BAD_ARGS = EXIT_FAILURE+1, EXIT_BAD_FILE,
|
|
EXIT_LIB_ERROR, EXIT_INTERNAL_ERROR } exit_status;
|