summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2007-04-12 14:14:12 +0000
committerMark Wielaard <mark@klomp.org>2007-04-12 14:14:12 +0000
commit03e404f03bbbb8cf7e0df7c7e2f9f0d4006f1e12 (patch)
tree2db9ebf9f079597975199311b4e7c3a1b79d80ff
parent8b3d371a630266d2ed15c4c4e8b836580a793d3f (diff)
downloadclasspath-03e404f03bbbb8cf7e0df7c7e2f9f0d4006f1e12.tar.gz
2007-04-11 Christian Thalinger <twisti@complang.tuwien.ac.at>
* native/jni/java-nio/javanio.c: Include fcntl.h instead of sys/fcntl.h.
-rw-r--r--ChangeLog5
-rw-r--r--native/jni/java-nio/javanio.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5d4dde3b5..544d5c974 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-04-11 Christian Thalinger <twisti@complang.tuwien.ac.at>
+
+ * native/jni/java-nio/javanio.c: Include fcntl.h instead of
+ sys/fcntl.h.
+
2007-04-12 Mark Wielaard <mark@klomp.org>
* gnu/java/awt/peer/ClasspathFontPeer.java (LRUCache): New static
diff --git a/native/jni/java-nio/javanio.c b/native/jni/java-nio/javanio.c
index 4775fd424..09806f8ba 100644
--- a/native/jni/java-nio/javanio.c
+++ b/native/jni/java-nio/javanio.c
@@ -41,12 +41,12 @@ exception statement from your version. */
* we include this file in the header, and do not compile it.
*/
+#include <fcntl.h>
+#include <unistd.h>
#include <sys/types.h>
-#include <sys/fcntl.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <sys/uio.h>
-#include <unistd.h>
CPNIO_EXPORT ssize_t
cpnio_read (int fd, void *buf, size_t nbytes)