diff options
-rw-r--r-- | support/ChangeLog | 1 | ||||
-rw-r--r-- | support/gnomesupport-h.c | 19 |
2 files changed, 14 insertions, 6 deletions
diff --git a/support/ChangeLog b/support/ChangeLog index 03ffd7b0..e433e09d 100644 --- a/support/ChangeLog +++ b/support/ChangeLog @@ -1,5 +1,6 @@ 1998-05-19 Raja R Harinath <harinath@cs.umn.edu> + * gnomesupport-h.c (strerror): Emit declaration. * strerror.c: New file. Imported from GNU libiberty. 1998-05-19 Martin Baulig <martin@home-of-linux.org> diff --git a/support/gnomesupport-h.c b/support/gnomesupport-h.c index 7920e061..5da55bf6 100644 --- a/support/gnomesupport-h.c +++ b/support/gnomesupport-h.c @@ -101,15 +101,13 @@ int alphasort PARAMS((const void */*a*/, const void */*b*/)); "); #endif -#ifndef HAVE_STRTOK_R +#ifndef HAVE_STRERROR puts("\ -/* Divide S into tokens separated by characters in DELIM. Information - passed between calls are stored in SAVE_PTR. */ -char * strtok_r PARAMS((char */*s*/, const char */*delim*/, - char **/*save_ptr*/)); +/* Return a string describing the meaning of the `errno' code in ERRNUM. */ +extern char *strerror PARAMS((int /*errnum*/)); "); #endif - + #ifndef HAVE_STRCASECMP puts("\ /* Compare S1 and S2, ignoring case. */ @@ -134,6 +132,15 @@ size_t strnlen PARAMS((const char */*string*/, size_t /*maxlen*/)); "); #endif +#ifndef HAVE_STRTOK_R + puts("\ +/* Divide S into tokens separated by characters in DELIM. Information + passed between calls are stored in SAVE_PTR. */ +char * strtok_r PARAMS((char */*s*/, const char */*delim*/, + char **/*save_ptr*/)); +"); +#endif + #ifndef HAVE_VASPRINTF puts("\ /* Write formatted output to a string dynamically allocated with `malloc'. |