pkgsrc/lang/cint/patches/patch-al
dholland 053674084d Fix broken 64-bit build, and patch makefile to stop on error. There
are a lot of woolly things going on here, so PKGREVISION++ as a
precaution.
2008-09-05 05:27:30 +00:00

13 lines
759 B
Text

$NetBSD: patch-al,v 1.1 2008/09/05 05:27:31 dholland Exp $
--- src/loadfile.c~ 2005-05-06 11:32:18.000000000 -0400
+++ src/loadfile.c 2008-09-05 00:26:18.000000000 -0400
@@ -2440,7 +2440,7 @@ char *name;
if(strlen(name)<G__MAXFILENAME-6) strcat(name,appendix);
return(name);
-#elif /*defined(G__NEVER) && */ ((__GNUC__>=3)||((__GNUC__>=2)&&(__GNUC_MINOR__>=96)))&&(defined(__linux)||defined(__linux__))
+#elif /*defined(G__NEVER) && */ ((__GNUC__>=3)||((__GNUC__>=2)&&(__GNUC_MINOR__>=96)))&&(defined(__linux)||defined(__linux__)||defined(__NetBSD__)||defined(__FreeBSD__)||defined(__OpenBSD__)||defined(__DragonFly__))
/* After all, mkstemp creates more problem than a solution. */
const char *appendix="_cint";
strcpy(name,"/tmp/XXXXXX");