musl libc defines the optreset BSD extension only in getopt.h. This fixes the following build failure: histedit.c: In function 'histcmd': histedit.c:220:2: error: 'optreset' undeclared (first use in this function) optreset = 1; optind = 1; /* initialize getopt */ ^~~~~~~~ Signed-off-by: Baruch Siach <baruch@xxxxxxxxxx> --- src/histedit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/histedit.c b/src/histedit.c index 94465d785cc9..f5c90aba873b 100644 --- a/src/histedit.c +++ b/src/histedit.c @@ -39,6 +39,7 @@ #include <stdio.h> #include <stdlib.h> #include <unistd.h> +#include <getopt.h> /* * Editline and history functions (and glue). */ -- 2.16.1 -- To unsubscribe from this list: send the line "unsubscribe dash" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html