Add #include <unistd.h> to provide prototype for getopt()
authorBrian Candler <b.candler@pobox.com>
Thu, 14 Dec 2017 20:40:22 +0000 (20:40 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 13 Dec 2018 23:51:33 +0000 (00:51 +0100)
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>
examples/auth/crackcheck/crackcheck.c

index 0c997bb00b6dcf4389d1cf54d2e52ad1aa2c9d01..c3037756f428ce00f6ffab098676836bd5085314 100644 (file)
@@ -4,6 +4,7 @@
 #include <stdio.h>
 #include <ctype.h>
 #include <crack.h>
+#include <unistd.h>
 
 void usage(char *command) {
        char *c, *comm;