From: Bob D. <bd...@si...> - 2004-02-01 20:24:16
|
Ok.. it looks like we need to have _REENTRANT and possibly __STDC__ defined.. I think there are autoconf macros for that stuff.. next thing to do is put them into rlib configure.in.. and then rlib can include config.h and problem solved :) You get two bonus points if you find them for me :) I'll add them in when I get to the office on monday - Bob On Sun, 2004-02-01 at 15:16, Tony Cratz wrote: > Bob, > > > hymmmmm.. looks like it "should" be there... is it actually?? > > > > In linux (on my RH 9.0 box).. my time.h defines localtime_r like: > > > > # if defined __USE_POSIX || defined __USE_MISC > > > > . > > . > > . > > > > extern struct tm *localtime_r (__const time_t *__restrict __timer, > > struct tm *__restrict __tp) __THROW; > > > > so first.. is it defined?? Hopefully yes.. second.. what "#if "'s wrap > > it... those things get set through the include file hell we all know and > > love about *nix :) .. we might need have a #define or .. maybe a > > _GNU_SOURCE or something.. it's been a while since I was on a solaris > > box > > It has 2 different ones they are: > > #if defined(__STDC__) > > #if defined(__EXTENSIONS__) || defined(_REENTRANT) || \ > (_POSIX_C_SOURCE - 0 >= 199506L) > extern struct tm *gmtime_r(const time_t *, struct tm *); > extern struct tm *localtime_r(const time_t *, struct tm *); > #endif /* defined(__EXTENSIONS__) || defined(_REENTRANT) .. */ > > > And > > > #if defined(__EXTENSIONS__) || defined(_REENTRANT) || \ > (_POSIX_C_SOURCE - 0 >= 199506L) > extern struct tm *gmtime_r(); > extern struct tm *localtime_r(); > #endif /* defined(__EXTENSIONS__) || defined(_REENTRANT) .. */ > > > If you would like I can send you my time.h file. > > I'm going out of the house for a while. I should be back in > about 3 - 4 hours. > > > Tony > > > |