[PR PATCH] Add #include <unistd.h> to provide prototype for getopt()
github at samba.org
github at samba.org
Thu Dec 14 20:43:02 UTC 2017
There is a new pull request by candlerb against master on the Samba Samba Github repository
https://github.com/candlerb/samba candlerb/crackcheck-unistd
https://github.com/samba-team/samba/pull/116
Add #include <unistd.h> to provide prototype for getopt()
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){
^
~~~
A patch file from https://github.com/samba-team/samba/pull/116.patch is attached
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: github-pr-candlerb/crackcheck-unistd-116.patch
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20171214/66b8eadf/crackcheck-unistd-116.patch>
More information about the samba-technical
mailing list