[PR PATCH] [Closed]: Add #include <unistd.h> to provide prototype for getopt()
github at samba.org
github at samba.org
Fri Dec 14 03:20:48 UTC 2018
There's a closed pull request on the Samba Samba Github repository
Add #include <unistd.h> to provide prototype for getopt()
https://github.com/samba-team/samba/pull/116
Description: Fixes warning when building crackcheck:
~~~
# make
gcc -O2 -c -o crackcheck.o crackcheck.c
crackcheck.c: In function âmainâ:
crackcheck.c:91:15: warning: implicit declaration of function âgetoptâ [-Wimplicit-function-declaratio
while ( (c = getopt(argc, argv, "d:cs")) != EOF){
^
~~~
More information about the samba-technical
mailing list