From 523d24878f5fb20c03210d10a919058a43fb5c31 Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Fri, 2 Mar 2018 08:32:16 +0200 Subject: histedit: fix build with musl libc 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 Signed-off-by: Herbert Xu --- src/histedit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/histedit.c b/src/histedit.c index 94465d7..f5c90ab 100644 --- a/src/histedit.c +++ b/src/histedit.c @@ -39,6 +39,7 @@ #include #include #include +#include /* * Editline and history functions (and glue). */ -- cgit 1.4.1