diff options
author | Ken Foskey <waratah@openoffice.org> | 2002-10-11 12:42:49 +0000 |
---|---|---|
committer | Ken Foskey <waratah@openoffice.org> | 2002-10-11 12:42:49 +0000 |
commit | bc95f59574c8d2535fa028e8a6af09f826725801 (patch) | |
tree | 5d0d413043879f3fc13b8fe3ce0b3e9c2188de73 /dmake/extern.h | |
parent | 68496a2957e2f4b7bb2b8a943236ea4859905bf2 (diff) |
dmake: Implement fix for Lost child problem. Correct some checks for functions (assumed present) and also fix up all gcc warnings using -Wall.
Diffstat (limited to 'dmake/extern.h')
-rw-r--r-- | dmake/extern.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/dmake/extern.h b/dmake/extern.h index c41c143a1aef..fdf5c2446ce7 100644 --- a/dmake/extern.h +++ b/dmake/extern.h @@ -1,4 +1,4 @@ -/* RCS $Id: extern.h,v 1.5 2002-10-07 13:36:01 waratah Exp $ +/* RCS $Id: extern.h,v 1.6 2002-10-11 13:42:42 waratah Exp $ -- -- SYNOPSIS -- External declarations for dmake functions. @@ -90,4 +90,28 @@ * the extern declarations however. */ #include "posix.h" +/* Work around some of the functions that may or may not exist */ +#if ! HAVE_TZSET +#if HAVE_SETTZ +# define tzset() settz() +#else +# warn "tzset is not supported, null out" +# define tzset() +#endif +#endif + +/* Get the working directory fall back code */ +#if ! HAVE_GETCWD +#if HAVE_GETWD +# define getcwd(buf,len) getwd(buf) +#else +# error "You have no supported way of getting working directory" +#endif +#endif + +/* If setvbuf is not available set output to unbuffered */ +#if ! HAVE_SETVBUF +# define setvbuf(fp,bp,type,len) setbuf(fp,NULL) +#endif + #endif |