]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
vpool: fix compilation with muscl libc
authorDaniel Salzman <daniel.salzman@nic.cz>
Sun, 18 Mar 2018 15:16:37 +0000 (16:16 +0100)
committerDaniel Salzman <daniel.salzman@nic.cz>
Sun, 18 Mar 2018 15:16:37 +0000 (16:16 +0100)
fixes #574

src/libdnssec/contrib/vpool.h

index 108983ce4c2cd47b868fc5b765786a6231c3d336..82e3d66b6d690af3ede05c5f25806f9cca4e08a7 100644 (file)
@@ -20,9 +20,7 @@
 #ifndef _VPOOL_H_
 #define _VPOOL_H_
 
-#include <sys/types.h>
-#include <sys/cdefs.h>
-
+#include <stddef.h>
 #include <limits.h>
 
 struct vpool {
@@ -39,8 +37,6 @@ struct vpool {
 enum vpool_trunc {VPOOL_EXCLUDE, VPOOL_INCLUDE};
 #define VPOOL_TAIL     UINT_MAX
 
-__BEGIN_DECLS
-
 void   vpool_init(struct vpool *pool, size_t blksize, size_t limit);
 void   vpool_final(struct vpool *pool);
 
@@ -61,6 +57,4 @@ int   vpool_truncate(struct vpool *pool,
 
 void   vpool_export(struct vpool *pool, void **buf, size_t *size);
 
-__END_DECLS
-
 #endif /* !_VPOOL_H_ */