summaryrefslogtreecommitdiff
path: root/common/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/compat.h')
-rw-r--r--common/compat.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/compat.h b/common/compat.h
index 20f9a81..1cedc35 100644
--- a/common/compat.h
+++ b/common/compat.h
@@ -298,4 +298,16 @@ time_t timegm (struct tm *tm);
#endif /* HAVE_TIMEGM */
+#ifdef HAVE_GETAUXVAL
+
+#include <sys/auxv.h>
+
+#else /* !HAVE_GETAUXVAL */
+
+unsigned long getauxval (unsigned long type);
+
+#define AT_SECURE 23
+
+#endif /* !HAVE_GETAUXVAL */
+
#endif /* __COMPAT_H__ */