From e530f72f73fa4f7072b5edafee7a09c86b3aea7f Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 24 Feb 2011 15:48:06 +0000 Subject: =?UTF-8?q?2011-02-24=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * libcsupport/include/sys/statvfs.h: Remove include (unused). Add C++ guards. Declare functions extern. --- cpukit/libcsupport/include/sys/statvfs.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'cpukit/libcsupport') diff --git a/cpukit/libcsupport/include/sys/statvfs.h b/cpukit/libcsupport/include/sys/statvfs.h index 1ef210a702..1029eb3c6b 100644 --- a/cpukit/libcsupport/include/sys/statvfs.h +++ b/cpukit/libcsupport/include/sys/statvfs.h @@ -15,9 +15,12 @@ #ifndef _SYS_STATVFS_H_ #define _SYS_STATVFS_H_ -#include #include +#ifdef __cplusplus +extern "C" { +#endif + typedef uint64_t fsblkcnt_t; typedef uint32_t fsfilcnt_t; @@ -39,7 +42,11 @@ struct statvfs unsigned long f_namemax; /**< Maximum filename length. */ }; -int statvfs(const char *, struct statvfs *); -int fstatvfs(int, struct statvfs *); +extern int statvfs(const char *, struct statvfs *); +extern int fstatvfs(int, struct statvfs *); + +#ifdef __cplusplus +} +#endif #endif -- cgit v1.2.3