On Fri, 2019-12-20 at 11:00 +0000, Ross Burton wrote: > Breaks on Centos 7: > > nsinstall.c: In function ‘main’: > nsinstall.c:201:5: warning: implicit declaration of function > ‘getopt’ > [-Wimplicit-function-declaration] > while ((opt = getopt(argc, argv, "C:DdlL:Rm:o:g:t")) != EOF) { > ^ > nsinstall.c:203:20: error: ‘optarg’ undeclared (first use in this > function) > case 'C': cwd = optarg; break; > ^ > nsinstall.c:203:20: note: each undeclared identifier is reported > only > once for each function it appears in > nsinstall.c:225:13: error: ‘optind’ undeclared (first use in this > function) > argc -= optind; > ^ >
another C99 issue I guess perhaps #include <getopt.h> in nsinstall.c will fix it. > Ross -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core