summaryrefslogtreecommitdiff
path: root/openbsd-compat/bsd-statvfs.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2014-01-17 18:10:58 +1100
committerDarren Tucker <dtucker@zip.com.au>2014-01-17 18:10:58 +1100
commita5cf1e220def07290260e4125e74f41ac75cf88d (patch)
tree990b73a34c1f425de38cccf83e2aa386ec7a6af1 /openbsd-compat/bsd-statvfs.h
parent1357d71d7b6d269969520aaa3e84d312ec971d5b (diff)
- (dtucker) [configure.ac openbsd-compat/bsd-statvfs.c
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@
Diffstat (limited to 'openbsd-compat/bsd-statvfs.h')
-rw-r--r--openbsd-compat/bsd-statvfs.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/openbsd-compat/bsd-statvfs.h b/openbsd-compat/bsd-statvfs.h
index da215ffc6..057407cc8 100644
--- a/openbsd-compat/bsd-statvfs.h
+++ b/openbsd-compat/bsd-statvfs.h
@@ -1,7 +1,7 @@
1/* $Id: bsd-statvfs.h,v 1.1 2008/06/08 17:32:29 dtucker Exp $ */ 1/* $Id: bsd-statvfs.h,v 1.2 2014/01/17 07:10:59 dtucker Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2008 Darren Tucker <dtucker@zip.com.au> 4 * Copyright (c) 2008,2014 Darren Tucker <dtucker@zip.com.au>
5 * 5 *
6 * Permission to use, copy, modify, and distribute this software for any 6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above 7 * purpose with or without fee is hereby granted, provided that the above
@@ -20,11 +20,14 @@
20 20
21#include <sys/types.h> 21#include <sys/types.h>
22 22
23#ifdef HAVE_SYS_MOUNT_H
24#include <sys/mount.h>
25#endif
23#ifdef HAVE_SYS_STATFS_H 26#ifdef HAVE_SYS_STATFS_H
24#include <sys/statfs.h> 27#include <sys/statfs.h>
25#endif 28#endif
26 29
27#ifndef HAVE_STATVFS 30#if !defined(HAVE_STATVFS) || !defined(HAVE_FSTATVFS)
28 31
29#ifndef HAVE_FSBLKCNT_T 32#ifndef HAVE_FSBLKCNT_T
30typedef unsigned long fsblkcnt_t; 33typedef unsigned long fsblkcnt_t;