On Jul 24, 2014 7:25 AM, <[1]sf...@users.sourceforge.net> wrote: Sean Lynch: > I figured since the macro was using errno, err never be called with a 0 > status. You are right. But I am subject to make mistakes. :-) Additioanally 'err_' looks too ugly. Here is a refined patch. Does it work for you? J. R. Okajima
Now program_invocation_name is missing: seanl@michiru:~/project/bootstrap/aufs-util$ make HOSTCC=musl-gcc CPPFLAGS=-I$(pwd)/../kernel-headers/include musl-gcc -O -Wall -I/home/seanl/project/bootstrap/aufs-util/../kernel-headers/include -I./libau -DMOUNT_CMD_PATH=\"\"  ver.c  -o ver In file included from ver.c:23:0: au_util.h: In function âerror_at_lineâ: au_util.h:38:3: error: âprogram_invocation_nameâ undeclared (first use in this function)   program_invocation_name, filename, linenum);   ^ au_util.h:38:3: note: each undeclared identifier is reported only once for each function it appears in <builtin>: recipe for target 'ver' failed make: *** [ver] Error 1 References 1. mailto:sf...@users.sourceforge.net
------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds