summaryrefslogtreecommitdiff
path: root/security/tct/patches/patch-ap
diff options
context:
space:
mode:
Diffstat (limited to 'security/tct/patches/patch-ap')
-rw-r--r--security/tct/patches/patch-ap19
1 files changed, 19 insertions, 0 deletions
diff --git a/security/tct/patches/patch-ap b/security/tct/patches/patch-ap
new file mode 100644
index 00000000000..ea6db22a805
--- /dev/null
+++ b/security/tct/patches/patch-ap
@@ -0,0 +1,19 @@
+$NetBSD: patch-ap,v 1.1 2010/03/08 01:21:25 dholland Exp $
+
+Don't declare own errno, it doesn't work on various platforms.
+
+--- src/file/file.h~ 2000-07-30 19:39:20.000000000 -0400
++++ src/file/file.h 2010-03-07 20:09:46.000000000 -0500
+@@ -101,8 +101,11 @@ extern void ckfprintf __P((FILE *, con
+ extern unsigned long signextend __P((struct magic *, unsigned long));
+
+
+-
++#if 0
+ extern int errno; /* Some unixes don't define this.. */
++#else
++#include <errno.h>
++#endif
+
+ extern char *progname; /* the program name */
+ extern char *magicfile; /* name of the magic file */