From: macrule <562520+macrule@users.noreply.github.com> Date: Wed, 29 Nov 2017 17:18:53 +0000 (+0100) Subject: vfs: The sys/sysmacros.h include is not available or needed on FreeBSD and Darwin. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6ee8ef0567d070429232630b734d6786810281fb;p=thirdparty%2Ftvheadend.git vfs: The sys/sysmacros.h include is not available or needed on FreeBSD and Darwin. Had to rearrange include order to have access to the PLATFORM_* macros. --- diff --git a/src/tvhvfs.c b/src/tvhvfs.c index d3c6cd1dc..0be2592a3 100644 --- a/src/tvhvfs.c +++ b/src/tvhvfs.c @@ -15,10 +15,12 @@ * along with this program. If not, see . */ -#include -#include #include "tvheadend.h" #include "tvhvfs.h" +#if !defined(PLATFORM_DARWIN) && !defined(PLATFORM_FREEBSD) +#include +#endif +#include int tvh_vfs_fsid_build(const char *path, struct statvfs *vfs, tvh_fsid_t *dst) {