This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: !HAVE_DLOPEN in natSharedLibLoader



I'm checking in this obvious fix...

Tue Oct 23 23:52:18 2001  Anthony Green  <green@redhat.com>

	* gnu/gcj/runtime/natSharedLibLoader.cc: Only include dlfcn.h when
	HAVE_DLOPEN.

Index: gnu/gcj/runtime/natSharedLibLoader.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/gcj/runtime/natSharedLibLoader.cc,v
retrieving revision 1.1
diff -u -p -r1.1 natSharedLibLoader.cc
--- natSharedLibLoader.cc	2001/09/29 19:16:26	1.1
+++ natSharedLibLoader.cc	2001/10/24 06:55:09
@@ -12,11 +12,12 @@ details.  */
 
 #include <gcj/cni.h>
 #include <gnu/gcj/runtime/SharedLibLoader.h>
-#include <dlfcn.h>
 #include <java/io/IOException.h>
 #include <java/lang/UnsupportedOperationException.h>
 
 #ifdef HAVE_DLOPEN
+#include <dlfcn.h>
+
 /* Only used during dlopen, while having a lock on Class.class. */
 static gnu::gcj::runtime::SharedLibLoader* curLoader;
 

AG


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]