error compiling on OpenBSD
wise@puma:/var/www/vhost/wiki/mustach$ make
cc -O2 -pipe -I/usr/local/include -L/usr/local/lib -g -o mustach mustach-tool.c mustach.c mustach-json-c.c -ljson-c
mustach-json-c.c:122:6: warning: implicit declaration of function 'strdupa' is invalid in C99
[-Wimplicit-function-declaration]
n = strdupa(name);
^
mustach-json-c.c:122:4: warning: incompatible integer to pointer conversion assigning to 'char *' from
'int' [-Wint-conversion]
n = strdupa(name);
^ ~~~~~~~~~~~~~
2 warnings generated.
/tmp/mustach-json-c-6d37a9.o: In function `find':
/var/www/vhost/wiki/mustach/mustach-json-c.c:122: undefined reference to `strdupa'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error 1 in /var/www/vhost/wiki/mustach (Makefile:3 'mustach')
Edited by Paul Wisehart