SV: trouble compiling nsd-2.3.0 under solaris 10

I tried reconfigured it with the flags but the compile failed.. I looked in the man page for ctime_r and i found that i could use -D_POSIX_PTHREAD_SEMANTICS flag for POSIX compliant.

After i run the configure script with -D_POSIX_PTHREAD_SEMANTICS everythig worked ok..

From the ctime_r man page

     char *ctime_r(const time_t *clock, char *buf, int buflen);

  Standard conforming
     cc [ flag... ] file... -D_POSIX_PTHREAD_SEMANTICS [ library... ]

     char *ctime_r(const time_t *clock, char *buf);

     char *asctime_r(const struct tm *tm, char *buf);

Thanks for all your help!

//joel

-----Ursprungligt meddelande-----