summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBrian Candler <b.candler@pobox.com>2017-12-14 20:40:22 +0000
committerAndrew Bartlett <abartlet@samba.org>2018-12-14 00:51:33 +0100
commit89705734432eec6c458f53b1dc7a10b4833f2215 (patch)
treea35591e5562a5e80983769191c3b014247f8a4ba /examples
parent288338b42926f1d4fc7885eb6558a6f82586a02d (diff)
downloadsamba-89705734432eec6c458f53b1dc7a10b4833f2215.tar.gz
Add #include <unistd.h> to provide prototype for getopt()
Signed-off-by: Brian Candler <b.candler@pobox.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'examples')
-rw-r--r--examples/auth/crackcheck/crackcheck.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/auth/crackcheck/crackcheck.c b/examples/auth/crackcheck/crackcheck.c
index 0c997bb00b6..c3037756f42 100644
--- a/examples/auth/crackcheck/crackcheck.c
+++ b/examples/auth/crackcheck/crackcheck.c
@@ -4,6 +4,7 @@
#include <stdio.h>
#include <ctype.h>
#include <crack.h>
+#include <unistd.h>
void usage(char *command) {
char *c, *comm;