pkgsrc/math/xgap/patches/patch-ac

25 lines
583 B
Text

$NetBSD: patch-ac,v 1.1 2005/12/27 13:53:22 joerg Exp $
--- src.x11/selfile.c.orig 2005-12-19 15:45:32.000000000 +0000
+++ src.x11/selfile.c
@@ -73,7 +73,6 @@
# endif
#endif
-
#include "selfile.h"
#define SEL_FILE_CANCEL -1
@@ -134,10 +133,9 @@ static void SFdirModTimer();
static char SFstatChar();
-
-/* BSD 4.3 errno.h does not declare errno */
-extern int errno;
+#if !defined(__DragonFly__) && !defined(__FreeBSD__) && !defined(__NetBSD__)
extern int sys_nerr;
+#endif
#if !defined(S_ISDIR) && defined(S_IFDIR)
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)