Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
pkg.h: fix build on linux where __unused is undeclared
Baptiste Daroussin committed 3 years ago
commit f0047a0e54e246028b260885c5788f59586fda75
parent 5a94cde
1 file changed +8 -0
modified libpkg/pkg.h.in
@@ -38,6 +38,14 @@ extern "C" {
#define restrict
#endif

+
#ifndef __unused
+
#ifdef __GNUC__
+
# define __unused __attribute__((__unused__))
+
#else
+
# define __unused
+
#endif
+
#endif
+

#include <sys/types.h>
#include <sys/param.h>
#include <stdarg.h>