fix include problem

From-SVN: r46459
This commit is contained in:
Anthony Green 2001-10-24 07:00:19 +00:00 committed by Anthony Green
parent 0a3abdb238
commit ee3ef86255
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Tue Oct 23 23:52:18 2001 Anthony Green <green@redhat.com>
* gnu/gcj/runtime/natSharedLibLoader.cc: Only include dlfcn.h when
HAVE_DLOPEN.
2001-10-23 Tom Tromey <tromey@redhat.com>
* java/lang/reflect/Field.java (Field): New constructor.

View File

@ -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;