public inbox for java-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Patch: FYI: GC fixlet for cross compilation
@ 2006-02-10  1:54 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2006-02-10  1:54 UTC (permalink / raw)
  To: Java Patch List

I'm checking this in on the trunk and the 4.1 branch.

Richard Earnshaw pointed out that the recent GC change broke his
ARM cross, as it does not have dlfcn.h.

I'm fixing as appended.  This is a bit ugly, as gc_config.h is
included again later (via gc.h).  But, I didn't want to mess with
include ordering at this point.  Anyway, all we're doing here is
conditionally including dlfcn.h on the same condition under which we
require its contents.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	* pthread_support.c: Conditionally include dlfcn.h.

Index: pthread_support.c
===================================================================
--- pthread_support.c	(revision 110683)
+++ pthread_support.c	(working copy)
@@ -47,8 +47,12 @@
 /*#define DEBUG_THREADS 1*/
 /*#define GC_ASSERTIONS*/
 
+#include "gc_config.h"
+
+#ifdef GC_PTHREAD_SYM_VERSION
 #define _GNU_SOURCE
 #include <dlfcn.h>
+#endif
 
 # include "gc.h"
 # include "private/pthread_support.h"

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-02-10  1:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-10  1:54 Patch: FYI: GC fixlet for cross compilation Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).