Provide declarations for strchrnul, strndup if necessary.
Showing
1 changed file
with
8 additions
and
0 deletions
... | @@ -76,6 +76,14 @@ char *alloca (); | ... | @@ -76,6 +76,14 @@ char *alloca (); |
76 | #include "argp-fmtstream.h" | 76 | #include "argp-fmtstream.h" |
77 | #include "argp-namefrob.h" | 77 | #include "argp-namefrob.h" |
78 | 78 | ||
79 | #if !HAVE_DECL_STRCHRNUL | ||
80 | extern char *strchrnul __P((const char *s, int c_in)); | ||
81 | #endif | ||
82 | #if !HAVE_DECL_STRNDUP | ||
83 | extern char *strndup __P((const char *s, size_t n)); | ||
84 | #endif | ||
85 | |||
86 | |||
79 | /* User-selectable (using an environment variable) formatting parameters. | 87 | /* User-selectable (using an environment variable) formatting parameters. |
80 | 88 | ||
81 | These may be specified in an environment variable called `ARGP_HELP_FMT', | 89 | These may be specified in an environment variable called `ARGP_HELP_FMT', | ... | ... |
-
Please register or sign in to post a comment