sratoolkit: fix build due to undefined ATTRIBUTE_UNUSED
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
diff --git a/libs/kxml/xml.c b/libs/kxml/xml.c
|
||||
index ce445424..41e21612 100644
|
||||
--- a/libs/kxml/xml.c
|
||||
+++ b/libs/kxml/xml.c
|
||||
@@ -46,6 +46,9 @@ struct s_KNodeNamelist;
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
+#ifndef ATTRIBUTE_UNUSED
|
||||
+#define ATTRIBUTE_UNUSED
|
||||
+#endif
|
||||
|
||||
#define XML_DEBUG(msg) DBGMSG (DBG_XML, DBG_FLAG(DBG_XML_XML), msg)
|
||||
|
||||
@@ -25,6 +25,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
hash = "sha256-OeM4syv9c1rZn2ferrhXyKJu68ywVYwnHoqnviWBZy4=";
|
||||
};
|
||||
|
||||
patches = [ ./attribute_unused.patch ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DVDB_INCDIR=${ncbi-vdb}/include"
|
||||
"-DVDB_LIBDIR=${ncbi-vdb}/lib"
|
||||
|
||||
Reference in New Issue
Block a user