docbook2mdoc: fix musl
This commit is contained in:
parent
e2c395f975
commit
84b9f9313f
1 changed files with 21 additions and 0 deletions
21
srcpkgs/docbook2mdoc/patches/fix-decls.patch
Normal file
21
srcpkgs/docbook2mdoc/patches/fix-decls.patch
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
--- extern.h
|
||||||
|
+++ extern.h
|
||||||
|
@@ -119,12 +119,16 @@ enum attrval {
|
||||||
|
ATTRVAL__MAX
|
||||||
|
};
|
||||||
|
|
||||||
|
-__BEGIN_DECLS
|
||||||
|
+#ifdef __cplusplus
|
||||||
|
+extern "C" {
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
int isattrkey(enum nodeid node, enum attrkey key);
|
||||||
|
int isattrval(enum attrkey key, enum attrval val);
|
||||||
|
int isparent(enum nodeid node, enum nodeid parent);
|
||||||
|
|
||||||
|
-__END_DECLS
|
||||||
|
+#ifdef __cplusplus
|
||||||
|
+}
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
#endif
|
Loading…
Add table
Add a link
Reference in a new issue