diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-02-24 15:48:06 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-02-24 15:48:06 +0000 |
commit | e530f72f73fa4f7072b5edafee7a09c86b3aea7f (patch) | |
tree | f95a4c1dda1e0bc989eab4ddc4552bef00ea269d /cpukit/libcsupport/include/sys | |
parent | 2011-02-24 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-e530f72f73fa4f7072b5edafee7a09c86b3aea7f.tar.bz2 |
2011-02-24 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/include/sys/statvfs.h: Remove include <sys/cdefs.h>
(unused). Add C++ guards. Declare functions extern.
Diffstat (limited to 'cpukit/libcsupport/include/sys')
-rw-r--r-- | cpukit/libcsupport/include/sys/statvfs.h | 13 |
1 files changed, 10 insertions, 3 deletions
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 <sys/cdefs.h> #include <stdint.h> +#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 |