--- libmedusa-internal/medusa-io-handler.c.orig Sun Aug 6 04:10:06 2000 +++ libmedusa-internal/medusa-io-handler.c Thu Aug 17 10:27:10 2000 @@ -208,6 +208,9 @@ /* We open the file synchronously here to make sure the header gets written before returning the FILE * */ +#ifdef __FreeBSD__ +#define O_SYNC 0 +#endif file_descriptor = open (file_name, O_RDWR | O_CREAT | O_SYNC, S_IRUSR | S_IWUSR); write_header_to_file_descriptor (file_descriptor, magic_number, version_number, 0); close (file_descriptor);