aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/medusa/files/patch-aa
blob: 56b2c43eab5b12110946b32a92bb6cc189798512 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- 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);