- (dtucker) [openbsd-compat/bsd-statvfs.h] Only start including headers if we
need them to cut down on the name collisions.
This commit is contained in:
parent
a5cf1e220d
commit
5055699c7f
|
@ -36,6 +36,8 @@
|
||||||
openbsd-compat/bsd-statvfs.h] Implement enough of statvfs on top of statfs
|
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
|
to be useful (and for the regression tests to pass) on platforms that
|
||||||
have statfs and fstatfs. ok djm@
|
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
|
20140118
|
||||||
- (djm) OpenBSD CVS Sync
|
- (djm) OpenBSD CVS Sync
|
||||||
|
|
|
@ -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 <dtucker@zip.com.au>
|
* Copyright (c) 2008,2014 Darren Tucker <dtucker@zip.com.au>
|
||||||
|
@ -18,6 +18,8 @@
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
|
|
||||||
|
#if !defined(HAVE_STATVFS) || !defined(HAVE_FSTATVFS)
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#ifdef HAVE_SYS_MOUNT_H
|
#ifdef HAVE_SYS_MOUNT_H
|
||||||
|
@ -27,8 +29,6 @@
|
||||||
#include <sys/statfs.h>
|
#include <sys/statfs.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(HAVE_STATVFS) || !defined(HAVE_FSTATVFS)
|
|
||||||
|
|
||||||
#ifndef HAVE_FSBLKCNT_T
|
#ifndef HAVE_FSBLKCNT_T
|
||||||
typedef unsigned long fsblkcnt_t;
|
typedef unsigned long fsblkcnt_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue