summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2015-03-04 04:59:13 +1100
committerDamien Miller <djm@mindrot.org>2015-03-04 04:59:13 +1100
commit1598419e38afbaa8aa5df8dd6b0af98301e2c908 (patch)
treed89817165fcf1350b39510d30f7957e1c6af4f20 /defines.h
parentd608a51daad4f14ad6ab43d7cf74ef4801cc3fe9 (diff)
define __unused to nothing if not already defined
fixes builds on BSD/OS
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/defines.h b/defines.h
index fa0ccba7..cf65901d 100644
--- a/defines.h
+++ b/defines.h
@@ -850,4 +850,8 @@ struct winsize {
# endif /* gcc version */
#endif /* __predict_true */
+#ifndef __unused
+# define __unused
+#endif
+
#endif /* _DEFINES_H */