diff options
author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-11-22 10:27:53 +0000 |
---|---|---|
committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-11-22 10:27:53 +0000 |
commit | 7bfeb7c5295c908e97781b89f0d55862e3838fa8 (patch) | |
tree | af2229acbaae8dad77062972ca44b14b3b678302 /libjava/include/posix.h | |
parent | b895064e4ddd53290437c54e7d2ce2c5ff0c8a74 (diff) | |
download | gcc-7bfeb7c5295c908e97781b89f0d55862e3838fa8.tar.gz |
2002-11-22 Michael Koch <konqueror@gmx.de>
* include/posix.h:
(_Jv_platform_on_close): Moved out of #ifndef DISBALE_JAVA_NET.
* include/win32.h:
(_Jv_platform_on_close): Moved out of #ifndef DISBALE_JAVA_NET.
(backtrace): Moved out of #ifndef DISBALE_JAVA_NET.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59374 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/include/posix.h')
-rw-r--r-- | libjava/include/posix.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libjava/include/posix.h b/libjava/include/posix.h index 521b16fa553..447cadaf790 100644 --- a/libjava/include/posix.h +++ b/libjava/include/posix.h @@ -49,6 +49,13 @@ extern jlong _Jv_platform_gettimeofday (); extern void _Jv_platform_initialize (void); extern void _Jv_platform_initProperties (java::util::Properties*); +inline void +_Jv_platform_close_on_exec (jint fd) +{ + // Ignore errors. + ::fcntl (fd, F_SETFD, FD_CLOEXEC); +} + #ifndef DISABLE_JAVA_NET static inline int @@ -69,13 +76,6 @@ _Jv_close (jint fd) return ::close (fd); } -inline void -_Jv_platform_close_on_exec (jint fd) -{ - // Ignore errors. - ::fcntl (fd, F_SETFD, FD_CLOEXEC); -} - // Avoid macro definitions of bind from system headers, e.g. on // Solaris 7 with _XOPEN_SOURCE. FIXME inline int |