]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
vfs: The sys/sysmacros.h include is not available or needed on FreeBSD and Darwin.
authormacrule <562520+macrule@users.noreply.github.com>
Wed, 29 Nov 2017 17:18:53 +0000 (18:18 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 10 Dec 2017 15:14:48 +0000 (16:14 +0100)
Had to rearrange include order to have access to the PLATFORM_* macros.

src/tvhvfs.c

index d3c6cd1dca1c419653766526c3477c418083a591..0be2592a37a623172ee25155a01d0576f2a502c7 100644 (file)
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <sys/sysmacros.h>
-#include <sys/stat.h>
 #include "tvheadend.h"
 #include "tvhvfs.h"
+#if !defined(PLATFORM_DARWIN) && !defined(PLATFORM_FREEBSD)
+#include <sys/sysmacros.h>
+#endif
+#include <sys/stat.h>
 
 int tvh_vfs_fsid_build(const char *path, struct statvfs *vfs, tvh_fsid_t *dst)
 {