From 51930dcba6b9d8aeb891ba46f69e54b7b858ee8f Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Fri, 23 Aug 1996 14:55:27 +0000 Subject: [PATCH] extern declarations of `h_nerr' and `h_errlist' when needed. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@670 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/hstrerror.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/roken/hstrerror.c b/lib/roken/hstrerror.c index ccc08ced9..e1c6a4206 100644 --- a/lib/roken/hstrerror.c +++ b/lib/roken/hstrerror.c @@ -25,6 +25,12 @@ char *const h_errlist[] = { static const int h_nerr = { sizeof h_errlist / sizeof h_errlist[0] }; +#else + +extern const char *h_errlist[]; + +extern int h_nerr; + #endif char * @@ -37,4 +43,3 @@ hstrerror(int herr) } #endif -