--- libmedusa-internal/medusa-io-handler.c.orig Fri Oct 6 18:20:52 2000 +++ libmedusa-internal/medusa-io-handler.c Fri Nov 3 11:37:17 2000 @@ -254,2 +254,5 @@ 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); --- libmedusa/medusa-index-progress.c.orig Thu Feb 22 06:58:11 2001 +++ libmedusa/medusa-index-progress.c Fri Mar 2 13:40:31 2001 @@ -56,3 +56,5 @@ #elif HAVE_STATFS +#ifndef __FreeBSD__ # include +#endif #else @@ -90,2 +92,5 @@ unlink (INDEX_PROGRESS_FILE_NAME); +#ifdef __FreeBSD__ +#define O_SYNC 0 +#endif } --- libmedusa/medusa-unindexed-search.c.orig Wed Sep 20 14:03:58 2000 +++ libmedusa/medusa-unindexed-search.c Fri Nov 3 11:38:30 2000 @@ -1068,2 +1068,5 @@ { +#ifdef __FreeBSD__ +#define O_SYNC 0 +#endif return open (file_name, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR | O_SYNC); --- libmedusa/medusa-service-private.c.orig Thu Sep 14 23:59:29 2000 +++ libmedusa/medusa-service-private.c Fri Nov 3 11:41:51 2000 @@ -32,5 +32,5 @@ #include +#include #include #include -#include #include