--- sysutils/metalog/files/patch-src__metalog.c (revision 522499) +++ sysutils/metalog/files/patch-src__metalog.c (working copy) @@ -4,7 +4,7 @@ #ifdef WITH_DMALLOC # include #endif -+#if defined(__FreeBSD__) || defined(__DragonFly__) ++#if (defined(__FreeBSD__) || defined(__DragonFly__)) && !defined(fflush_unlocked) +#define fflush_unlocked fflush +#endif