aboutsummaryrefslogtreecommitdiffstats
path: root/include/readpassphrase.h
diff options
context:
space:
mode:
authorSean Farley <scf@FreeBSD.org>2008-05-08 23:57:29 +0000
committerSean Farley <scf@FreeBSD.org>2008-05-08 23:57:29 +0000
commit074fb5c7cc472f3e5d4be34c43a74e4f3d4d8ae0 (patch)
tree586ed21eb91b1f34817871f21297bfd7120f66b4 /include/readpassphrase.h
parent790fce68ddcc895e34bfde6863cdf576bb2c3781 (diff)
downloadsrc-074fb5c7cc472f3e5d4be34c43a74e4f3d4d8ae0.tar.gz
src-074fb5c7cc472f3e5d4be34c43a74e4f3d4d8ae0.zip
Define the size_t type since readpassphrase(3) requires it in its
definition and sys/types.h is not listed within the synopsis of the man page. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=178863
Diffstat (limited to 'include/readpassphrase.h')
-rw-r--r--include/readpassphrase.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/readpassphrase.h b/include/readpassphrase.h
index 031f51796c91..75cb8cb4a1d9 100644
--- a/include/readpassphrase.h
+++ b/include/readpassphrase.h
@@ -39,6 +39,12 @@
#define RPP_SEVENBIT 0x10 /* Strip the high bit from input. */
#include <sys/cdefs.h>
+#include <sys/_types.h>
+
+#ifndef _SIZE_T_DECLARED
+typedef __size_t size_t;
+#define _SIZE_T_DECLARED
+#endif
__BEGIN_DECLS
char * readpassphrase(const char *, char *, size_t, int);