On Tue, Dec 02, 2003 at 09:59:22PM -0600, Archie Cobbs wrote:
> Hi,
>
> The file native/target/generic/target_generic_file.h has this line:
>
> #define TARGET_NATIVE_FILE_FILEFLAG_SYNC O_SYNC
>
> However, FreeBSD uses "O_FSYNC" rather than "O_SYNC", so the build of
> Classpath on FreeBSD fails (is it just me?).
Well, I think classpath was not tested on FreeBSD for some month (!!!).
I've a patch that should solve your problems. Please test it and report
back.
> Would it be possible to fix this before 0.07?
Unfortunately not. Classpath 0.07 is already released just not uploaded
to ftp.gnu.org I think.
Michael
Index: ChangeLog
===================================================================
RCS file: /cvsroot/classpath/classpath/ChangeLog,v
retrieving revision 1.1687
diff -u -b -B -r1.1687 ChangeLog
--- ChangeLog 3 Dec 2003 08:20:03 -0000 1.1687
+++ ChangeLog 3 Dec 2003 10:03:29 -0000
@@ -1,3 +1,9 @@
+2003-12-03 Michael Koch <[EMAIL PROTECTED]>
+
+ * native/target/generic/target_generic_file.h
+ (TARGET_NATIVE_FILE_FILEFLAG_SYNC): Define to O_FSYNC on systems where
+ O_SYNC doesnt exist but O_FSYNC does (like FreeBSD).
+
2003-12-03 Fernando Nasser <[EMAIL PROTECTED]>
* java/awt/List.java (getSelectedIndex):
Index: native/target/generic/target_generic_file.h
===================================================================
RCS file: /cvsroot/classpath/classpath/native/target/generic/target_generic_file.h,v
retrieving revision 1.11
diff -u -b -B -r1.11 target_generic_file.h
--- native/target/generic/target_generic_file.h 2 Nov 2003 15:51:19 -0000 1.11
+++ native/target/generic/target_generic_file.h 3 Dec 2003 10:03:30 -0000
@@ -90,7 +90,11 @@
#define TARGET_NATIVE_FILE_FILEFLAG_APPEND O_APPEND
#endif
#ifndef TARGET_NATIVE_FILE_FILEFLAG_SYNC
+ #if !defined (O_SYNC) && defined (O_FSYNC)
+ #define TARGET_NATIVE_FILE_FILEFLAG_SYNC O_FSYNC
+ #else
#define TARGET_NATIVE_FILE_FILEFLAG_SYNC O_SYNC
+ #endif
#endif
#ifndef TARGET_NATIVE_FILE_FILEFLAG_DSYNC
#ifdef O_DSYNC
_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath