pkgsrc/graphics/ivtools/patches/patch-ak
joerg e99a0fb122 Add DragonFly support, fix build with modular and pkgsrc Xorg and
shared library linkage in general. On DragonFly and NetBSD build
with -Wl,-z,defs to find possible regressions.
2007-02-15 18:26:14 +00:00

13 lines
537 B
Text

$NetBSD: patch-ak,v 1.3 2007/02/15 18:26:15 joerg Exp $
--- src/ComTerp/comterp.c.orig 2007-02-15 16:01:11.000000000 +0000
+++ src/ComTerp/comterp.c
@@ -899,7 +899,7 @@ int ComTerp::run(boolean one_expr, boole
fbuf.attach(fd);
} else
fbuf.attach(fileno(stdout));
-#elif (__GNUC__==3 && __GNUC_MINOR__<1) || __GNUC__>3
+#elif (__GNUC__==3 && (__GNUC_MINOR__<1 || __GNUC_MINOR__ >= 4)) || __GNUC__>3
fileptr_filebuf fbuf(handler() && handler()->wrfptr()
? handler()->wrfptr() : stdout,
ios_base::out);