From 5055699c7f7c7ef21703a443ec73117da392f6ae Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 17 Jan 2014 18:48:22 +1100 Subject: - (dtucker) [openbsd-compat/bsd-statvfs.h] Only start including headers if we need them to cut down on the name collisions. --- ChangeLog | 2 ++ openbsd-compat/bsd-statvfs.h | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 70dad451..3822b048 100644 --- a/ChangeLog +++ b/ChangeLog @@ -36,6 +36,8 @@ openbsd-compat/bsd-statvfs.h] Implement enough of statvfs on top of statfs to be useful (and for the regression tests to pass) on platforms that have statfs and fstatfs. ok djm@ + - (dtucker) [openbsd-compat/bsd-statvfs.h] Only start including headers if we + need them to cut down on the name collisions. 20140118 - (djm) OpenBSD CVS Sync diff --git a/openbsd-compat/bsd-statvfs.h b/openbsd-compat/bsd-statvfs.h index 057407cc..dfd60997 100644 --- a/openbsd-compat/bsd-statvfs.h +++ b/openbsd-compat/bsd-statvfs.h @@ -1,4 +1,4 @@ -/* $Id: bsd-statvfs.h,v 1.2 2014/01/17 07:10:59 dtucker Exp $ */ +/* $Id: bsd-statvfs.h,v 1.3 2014/01/17 07:48:22 dtucker Exp $ */ /* * Copyright (c) 2008,2014 Darren Tucker @@ -18,6 +18,8 @@ #include "includes.h" +#if !defined(HAVE_STATVFS) || !defined(HAVE_FSTATVFS) + #include #ifdef HAVE_SYS_MOUNT_H @@ -27,8 +29,6 @@ #include #endif -#if !defined(HAVE_STATVFS) || !defined(HAVE_FSTATVFS) - #ifndef HAVE_FSBLKCNT_T typedef unsigned long fsblkcnt_t; #endif -- cgit v1.2.3