OSDN Git Service

* include/posix.h: Add multiple include header protection.
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Mar 2002 04:15:51 +0000 (04:15 +0000)
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Mar 2002 04:15:51 +0000 (04:15 +0000)
* java/net/natPlainSocketImpl.cc: Don't #include <posix.h>.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50559 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/include/posix.h
libjava/java/net/natPlainSocketImpl.cc

index 80f2eda..3554f1a 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-10  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * include/posix.h: Add multiple include header protection.
+       * java/net/natPlainSocketImpl.cc: Don't #include <posix.h>.
+
 2002-03-10  Adam Megacz <adam@xwt.org>
 
         * java/net/natPlainSocketImpl.cc: Added #include <platform.h>.
index 05c6ddf..7e9aaf5 100644 (file)
@@ -8,6 +8,9 @@ This software is copyrighted work licensed under the terms of the
 Libgcj License.  Please consult the file "LIBGCJ_LICENSE" for
 details.  */
 
+#ifndef __JV_POSIX_H__
+#define __JV_POSIX_H__
+
 /* Required on Tru64 UNIX V4/V5 so <sys/socket.h> defines prototypes of
    socket functions with socklen_t instead of size_t.  This must be defined
    early so <standards.h> defines the correct version of __PIIX.  */
@@ -42,3 +45,5 @@ _Jv_platform_close_on_exec (jint fd)
   // Ignore errors.
   fcntl (fd, F_SETFD, FD_CLOEXEC);
 }
+
+#endif
index 8559651..aecbd4e 100644 (file)
@@ -45,7 +45,6 @@ read(int s, void *buf, int len)
 #define ENOPROTOOPT 109
 #endif
 #else /* WIN32 */
-#include "posix.h"
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <netinet/tcp.h>