1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/sysutils/medusa/files/patch-aa
Ade Lovett b021babcfb Medusa is software that allows you to quickly search your system for
particular types of files, using an index, aimed for the GNOME
environment in general, and Nautilus in particular.
2000-08-18 15:09:37 +00:00

13 lines
531 B
Plaintext

--- 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);