aboutsummaryrefslogtreecommitdiff
path: root/libjava/include/posix.h
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2002-11-22 10:27:53 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2002-11-22 10:27:53 +0000
commitc6d58c66821b943935eabb4f9d848a2cdd36abd0 (patch)
treeaf2229acbaae8dad77062972ca44b14b3b678302 /libjava/include/posix.h
parentfac3e63d64e0813bd043c5483c73991d2ad7296b (diff)
downloadgcc-c6d58c66821b943935eabb4f9d848a2cdd36abd0.zip
gcc-c6d58c66821b943935eabb4f9d848a2cdd36abd0.tar.gz
gcc-c6d58c66821b943935eabb4f9d848a2cdd36abd0.tar.bz2
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. From-SVN: r59374
Diffstat (limited to 'libjava/include/posix.h')
-rw-r--r--libjava/include/posix.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/libjava/include/posix.h b/libjava/include/posix.h
index 521b16f..447cada 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