pkgsrc/net/ORBit2/patches/patch-aa
wiz 9ee9901726 Update to 2.14.17:
ORBit2-2.14.17

	- bug fixes
		+ fix glib single includes (Cosimo Cecchi)
		+ various fixes for cross-compiling (Fridrich Strba)
		+ do fewer DNS lookups in linc (Jules Colding)
		+ fix compiler warnings (Kjartan)
		+ threading fixes (Tor Lillqvist)
		+ win32 portability fixes (Tor Lillqvist)
2009-03-06 14:02:32 +00:00

21 lines
827 B
Text

$NetBSD: patch-aa,v 1.7 2009/03/06 14:02:32 wiz Exp $
--- src/idl-compiler/orbit-idl-c-headers.c.orig 2008-08-31 14:04:43.000000000 +0000
+++ src/idl-compiler/orbit-idl-c-headers.c
@@ -587,6 +587,16 @@ ch_output_codefrag(IDL_tree tree, OIDL_R
while(*cte && !isspace((int)*cte) && *cte != '"') cte++;
*cte = '\0';
fprintf(ci->fh, "#include <%s>\n", ctmp);
+ } else if(!strncmp(list->data,
+ "#pragma\tinclude_defs",
+ sizeof("#pragma\tinclude_defs")-1)) {
+ char *ctmp, *cte;
+ ctmp = ((char *)list->data) + sizeof("#pragma\tinclude_defs");
+ while(*ctmp && (isspace((int)*ctmp) || *ctmp == '"')) ctmp++;
+ cte = ctmp;
+ while(*cte && !isspace((int)*cte) && *cte != '"') cte++;
+ *cte = '\0';
+ fprintf(ci->fh, "#include <%s>\n", ctmp);
} else
fprintf(ci->fh, "%s\n", (char *)list->data);
}