summaryrefslogtreecommitdiff
path: root/native/jni/java-io/java_io_VMFile.c
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2006-08-21 00:57:51 +0000
committerMark Wielaard <mark@klomp.org>2006-08-21 00:57:51 +0000
commitf5d6e044a613d4bc554561a5384288a9f6d17e39 (patch)
tree663a31c6f6866fcc2d8549d34a7172c7f775f653 /native/jni/java-io/java_io_VMFile.c
parent310be467f8f83b189b4a40faece32478fad67bc9 (diff)
downloadclasspath-NATIVE-LAYER.tar.gz
* doc/tools.texinfo: Add file from trunk.NATIVE-LAYER
* native/jni/Makefile.am (DIST_SUBDIRS): Add native-lib. * native/jni/java-io/java_io_VMFile.c: Include lstat and readlink headers. * native/jni/java-lang/java_lang_VMProcess.c (Java_java_lang_VMProcess_nativeSpawn): Remove redirect argument. * native/jni/java-net/java_net_VMInetAddress.c (Java_java_net_VMInetAddress_getHostByName): Remove unused variable. * native/jni/native-lib/Makefile.am: Remove empty and nonexisting files. * native/jni/native-lib/cpio.c (cpio_setFileReadonly): Use correct mask. * native/jni/native-lib/cpnet.c (cpnet_connect): Removed unused theaddr. * native/jni/native-lib/cpnet.h (cpnet_freeAddresses): Moved from cpnet.h. * native/jni/native-lib/cpnet.h (cpnet_freeAddresses): Declare, don't implement. * vm/reference/java/lang/VMProcess.java: Removed unused redirect argument. * include/java_lang_VMProcess.h: Regenerated.
Diffstat (limited to 'native/jni/java-io/java_io_VMFile.c')
-rw-r--r--native/jni/java-io/java_io_VMFile.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/native/jni/java-io/java_io_VMFile.c b/native/jni/java-io/java_io_VMFile.c
index ce890e603..3f9282049 100644
--- a/native/jni/java-io/java_io_VMFile.c
+++ b/native/jni/java-io/java_io_VMFile.c
@@ -42,6 +42,12 @@ exception statement from your version. */
#include <stdio.h>
#include <stdlib.h>
+#if defined (HAVE_LSTAT) && defined (HAVE_READLINK)
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+#endif
+
#include <jni.h>
#include <jcl.h>
#include "cpio.h"