X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=getopt.c;h=46da47149da828423e3b28c0a771f6b93838c685;hb=d3c55f5a5fcd740475ae9a3195986b455465be69;hp=0f41fb692366816f1ac535b714c75cbca4ff9a8f;hpb=3cea3c8809447c5d6658671b78b9af7137fd9b0d;p=pkg%2Fabook.git diff --git a/getopt.c b/getopt.c index 0f41fb6..46da471 100644 --- a/getopt.c +++ b/getopt.c @@ -43,6 +43,7 @@ #endif #include +#include /* Comment out all this code if we are using the GNU C Library, and are not actually compiling the library itself. This code is part of the GNU C @@ -650,6 +651,7 @@ int else { if (opterr) + { if (argv[optind - 1][1] == '-') /* --option */ fprintf(stderr, @@ -660,6 +662,7 @@ int fprintf(stderr, _("%s: option `%c%s' doesn't allow an argument\n"), argv[0], argv[optind - 1][0], pfound->name); + } nextchar += strlen(nextchar);