histedit: fix build with musl libc
commit523d24878f5fb20c03210d10a919058a43fb5c31
authorBaruch Siach <baruch@tkos.co.il>
Fri, 2 Mar 2018 06:32:16 +0000 (2 08:32 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 10 Mar 2018 08:01:43 +0000 (10 16:01 +0800)
treeae546b812b3750f01fdc93edd4647d4b1d0e5c72
parent556e2f03cc9e6e92ba361171226cd890db53589e
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 <baruch@tkos.co.il>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
src/histedit.c