+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.
+
2002-11-21 Michael Koch <konqueror@gmx.de>
* include/posix.h: I put too much into the #ifndef DISABLE_JAVA_NET.
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
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
extern void _Jv_platform_initProperties (java::util::Properties*);
extern jlong _Jv_platform_gettimeofday ();
+inline void
+_Jv_platform_close_on_exec (jint)
+{
+ // Ignore.
+}
+
#ifndef DISBALE_JAVA_NET
static inline int
return ::closesocket (fd);
}
-inline void
-_Jv_platform_close_on_exec (jint)
-{
- // Ignore.
-}
-
inline int
_Jv_bind (int fd, struct sockaddr *addr, int addrlen)
{
{
return ::recv (s, (char*) buf, len, 0);
}
+
+#endif /* DISBALE_JAVA_NET */
+
#define HAVE_BACKTRACE
/* Store up to SIZE return address of the current program state in
ARRAY and return the exact number of values stored. */
extern int backtrace (void **__array, int __size);
-#endif /* DISBALE_JAVA_NET */
-
#endif /* __JV_WIN32_H__ */