[shibboleth-sp2] 61/100: Conditionally declare sys_errlist
Ferenc Wágner
wferi-guest at moszumanska.debian.org
Tue Jan 26 21:29:18 UTC 2016
This is an automated email from the git hooks/post-receive script.
wferi-guest pushed a commit to annotated tag 1.2.1
in repository shibboleth-sp2.
commit 9710de9a0ecb9fc119a053de32ac1fe50893c6e3
Author: Scott Cantor <cantor.2 at osu.edu>
Date: Wed Oct 20 19:43:01 2004 +0000
Conditionally declare sys_errlist
---
oncrpc/clnt_per.c | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/oncrpc/clnt_per.c b/oncrpc/clnt_per.c
index ee60513..9c088e1 100644
--- a/oncrpc/clnt_per.c
+++ b/oncrpc/clnt_per.c
@@ -58,8 +58,18 @@ static char sccsid[] = "@(#)clnt_perror.c 1.15 87/10/07 Copyr 1984 Sun Micro";
#include <rpc/auth.h>
#include <rpc/clnt.h>
+// eventually we might be able to support autoconf via cygwin...
+#if defined (_MSC_VER) || defined(__BORLANDC__)
+# include "config_win32.h"
+#else
+# include "config.h"
+#endif
+
#ifndef WIN32
+#if !HAVE_DECL_SYS_ERRLIST
extern char *sys_errlist[];
+extern int sys_nerr;
+#endif
#ifdef NEED_SPRINTF
extern char *sprintf();
#endif
@@ -263,10 +273,6 @@ char *
clnt_spcreateerror(s)
char *s;
{
- extern int sys_nerr;
-#ifndef WIN32
- extern char *sys_errlist[];
-#endif
char *str = _buf();
if (str == 0)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/shibboleth-sp2.git
More information about the Pkg-shibboleth-devel
mailing list