summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cpukit/ChangeLog5
-rw-r--r--cpukit/libcsupport/include/sys/statvfs.h13
2 files changed, 15 insertions, 3 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index ee09f6749d..eeca3fcbb4 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,5 +1,10 @@
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.
+
+2011-02-24 Ralf Corsépius <ralf.corsepius@rtems.org>
+
* posix/include/rtems/posix/mqueue.h,
posix/include/rtems/posix/timer.h: Add missing includes.
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