pkgsrc/net/nocol/patches/patch-strerror_c

15 lines
462 B
Text

$NetBSD: patch-strerror_c,v 1.1 2011/10/03 06:59:49 dholland Exp $
Don't redeclare libc symbols.
--- lib/strerror.c~ 1997-02-18 12:50:13.000000000 +0000
+++ lib/strerror.c
@@ -11,7 +11,7 @@
char *strerror(n)
int n;
{
-#if !defined(__FreeBSD__) && !defined(__BSDI__)
+#if !defined(__FreeBSD__) && !defined(__BSDI__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__DragonFly__) && !defined(__linux__)
extern char *sys_errlist[];
#endif