trouble compiling nsd-2.3.0 under solaris 10

Have anyone compiled NSD 2.3.0 under Solaris 10? I have some trouble compiling it under solaris 10..

when i compile tsig.c i get the following error..

Looks like the ctime_r function on solaris is not POSIX compliant by default and has an additional 'size' argument. Could you try reconfiguring with:

$ ./configure CPPFLAGS='-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600'

and recompiling?

Other CPPFLAGS you might try to use are:

-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__

or just -D_POSIX_C_SOURCE

Erik