From 60678e476f75be5618f87e9cd11cf25f0fac29ac Mon Sep 17 00:00:00 2001 From: Bryce McKinlay Date: Mon, 11 Mar 2002 04:15:51 +0000 Subject: [PATCH] posix.h: Add multiple include header protection. * include/posix.h: Add multiple include header protection. * java/net/natPlainSocketImpl.cc: Don't #include . From-SVN: r50559 --- libjava/ChangeLog | 5 +++++ libjava/include/posix.h | 5 +++++ libjava/java/net/natPlainSocketImpl.cc | 1 - 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 80f2eda464f..3554f1a0e28 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2002-03-10 Bryce McKinlay + + * include/posix.h: Add multiple include header protection. + * java/net/natPlainSocketImpl.cc: Don't #include . + 2002-03-10 Adam Megacz * java/net/natPlainSocketImpl.cc: Added #include . diff --git a/libjava/include/posix.h b/libjava/include/posix.h index 05c6ddfad4c..7e9aaf54d92 100644 --- a/libjava/include/posix.h +++ b/libjava/include/posix.h @@ -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 defines prototypes of socket functions with socklen_t instead of size_t. This must be defined early so 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 diff --git a/libjava/java/net/natPlainSocketImpl.cc b/libjava/java/net/natPlainSocketImpl.cc index 855965132b5..aecbd4e2ee7 100644 --- a/libjava/java/net/natPlainSocketImpl.cc +++ b/libjava/java/net/natPlainSocketImpl.cc @@ -45,7 +45,6 @@ read(int s, void *buf, int len) #define ENOPROTOOPT 109 #endif #else /* WIN32 */ -#include "posix.h" #include #include #include -- 2.30.2