diff --git a/src/xpdev/genwrap.h b/src/xpdev/genwrap.h index 1a132c7b50e70ad8e8dfd12d53934457be69d042..c81475b318f356caec4b0ea3480f1246d36b0b72 100644 --- a/src/xpdev/genwrap.h +++ b/src/xpdev/genwrap.h @@ -277,7 +277,13 @@ DLLEXPORT int DLLCALL get_errno(void); #endif #if defined(__solaris__) - #define CTIME_R(x,y) ctime_r(x,y) + /* + * Solaris actually does have TWO ctime_r() implementations. + * there is proboble a CORRECT way of selecting one, but I don't + * have time to look it up right now. + * This is therefore, a Kludge. ToDo + */ + #define CTIME_R(x,y) __posix_ctime_r(x,y) /* #define CTIME_R(x,y) ctime_r(x,y,sizeof y) */ #else #define CTIME_R(x,y) ctime_r(x,y)