diff --git a/lib/roken/hstrerror.c b/lib/roken/hstrerror.c index e1c6a4206..2839a0402 100644 --- a/lib/roken/hstrerror.c +++ b/lib/roken/hstrerror.c @@ -27,9 +27,10 @@ const int h_nerr = { sizeof h_errlist / sizeof h_errlist[0] }; #else +#ifdef NEED_H_ERRLIST_PROTO extern const char *h_errlist[]; - extern int h_nerr; +#endif #endif