diff options
Diffstat (limited to 'tests/nbody-java')
-rw-r--r-- | tests/nbody-java/hysock.h | 2 | ||||
-rw-r--r-- | tests/nbody-java/native_java_io_File.c | 2 | ||||
-rw-r--r-- | tests/nbody-java/native_org_apache_harmony_luni_platform_OSNetworkSystem.c | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/tests/nbody-java/hysock.h b/tests/nbody-java/hysock.h index 4e41c9fa..14b0d916 100644 --- a/tests/nbody-java/hysock.h +++ b/tests/nbody-java/hysock.h @@ -226,7 +226,7 @@ typedef struct hylinger_struct } hylinger_struct; typedef struct hyipmreq_struct { - OSIPMREQ addrpair; + int addrpair; } hyipmreq_struct; #define GET_HOST_BUFFER_SIZE 512 /* The gethostBuffer is allocated bufferSize + EXTRA_SPACE, while gethostby*_r is only aware of bufferSize diff --git a/tests/nbody-java/native_java_io_File.c b/tests/nbody-java/native_java_io_File.c index b10e85e5..0539f167 100644 --- a/tests/nbody-java/native_java_io_File.c +++ b/tests/nbody-java/native_java_io_File.c @@ -115,7 +115,7 @@ JAVA_BOOLEAN java_io_File_isDirectoryImpl___byte_1ARRAY(JAVA_OBJECT me, JAVA_OBJ struct stat buf; int err; err = stat(fileName, &buf); - return buf.st_mode & S_IFDIR; + return buf.st_mode; // XXX & S_IFDIR; //XMLVM_END_NATIVE } diff --git a/tests/nbody-java/native_org_apache_harmony_luni_platform_OSNetworkSystem.c b/tests/nbody-java/native_org_apache_harmony_luni_platform_OSNetworkSystem.c index fc6339bc..81b8b13a 100644 --- a/tests/nbody-java/native_org_apache_harmony_luni_platform_OSNetworkSystem.c +++ b/tests/nbody-java/native_org_apache_harmony_luni_platform_OSNetworkSystem.c @@ -87,9 +87,8 @@ int selectRead(hysocket_t hysocketP, I_32 uSecTime, BOOLEAN accept) UDATA hytime_msec_clock () { struct timeval tp; - struct timezone tzp; - gettimeofday (&tp, &tzp); + gettimeofday (&tp, NULL); return (tp.tv_sec * 1000) + (tp.tv_usec / 1000); } |