[rtems commit] libblock: Drop superfluous <stdlib.h> include
Sebastian Huber
sebh at rtems.org
Thu Apr 7 09:33:12 UTC 2016
Module: rtems
Branch: master
Commit: d8ec270b333bfc7ad7cf7f79b407ee5513435cb8
Changeset: http://git.rtems.org/rtems/commit/?id=d8ec270b333bfc7ad7cf7f79b407ee5513435cb8
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Apr 7 10:29:09 2016 +0200
libblock: Drop superfluous <stdlib.h> include
Drop superfluous <stdlib.h> include from <rtems/diskdevs.h> since this
leads to conflicts with the latest Newlib in case this header file is
used in the FreeBSD kernel space, e.g. for USB mass storage support.
---
cpukit/libblock/include/rtems/diskdevs.h | 1 -
cpukit/libblock/src/bdbuf.c | 1 +
cpukit/libblock/src/media.c | 1 +
cpukit/libfs/src/dosfs/msdos_conv_default.c | 1 +
cpukit/libfs/src/rfs/rtems-rfs-file-system.c | 1 +
cpukit/libfs/src/rfs/rtems-rfs-file.c | 1 +
cpukit/libfs/src/rfs/rtems-rfs-shell.c | 1 +
7 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/cpukit/libblock/include/rtems/diskdevs.h b/cpukit/libblock/include/rtems/diskdevs.h
index 3940c57..0be766a 100644
--- a/cpukit/libblock/include/rtems/diskdevs.h
+++ b/cpukit/libblock/include/rtems/diskdevs.h
@@ -17,7 +17,6 @@
#include <rtems.h>
#include <rtems/libio.h>
#include <rtems/chain.h>
-#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
diff --git a/cpukit/libblock/src/bdbuf.c b/cpukit/libblock/src/bdbuf.c
index 8ea8cba..76f238d 100644
--- a/cpukit/libblock/src/bdbuf.c
+++ b/cpukit/libblock/src/bdbuf.c
@@ -33,6 +33,7 @@
#include <limits.h>
#include <errno.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <pthread.h>
diff --git a/cpukit/libblock/src/media.c b/cpukit/libblock/src/media.c
index 3cdb3e9..6df8a33 100644
--- a/cpukit/libblock/src/media.c
+++ b/cpukit/libblock/src/media.c
@@ -20,6 +20,7 @@
* http://www.rtems.org/license/LICENSE.
*/
+#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <unistd.h>
diff --git a/cpukit/libfs/src/dosfs/msdos_conv_default.c b/cpukit/libfs/src/dosfs/msdos_conv_default.c
index 781601e..a3f6b83 100644
--- a/cpukit/libfs/src/dosfs/msdos_conv_default.c
+++ b/cpukit/libfs/src/dosfs/msdos_conv_default.c
@@ -20,6 +20,7 @@
* http://www.rtems.org/license/LICENSE.
*/
+#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <ctype.h>
diff --git a/cpukit/libfs/src/rfs/rtems-rfs-file-system.c b/cpukit/libfs/src/rfs/rtems-rfs-file-system.c
index cf47f43..68f0fd8 100644
--- a/cpukit/libfs/src/rfs/rtems-rfs-file-system.c
+++ b/cpukit/libfs/src/rfs/rtems-rfs-file-system.c
@@ -19,6 +19,7 @@
#endif
#include <inttypes.h>
+#include <stdlib.h>
#include <string.h>
#include <rtems/rfs/rtems-rfs-data.h>
diff --git a/cpukit/libfs/src/rfs/rtems-rfs-file.c b/cpukit/libfs/src/rfs/rtems-rfs-file.c
index 539edb0..fbf3582 100644
--- a/cpukit/libfs/src/rfs/rtems-rfs-file.c
+++ b/cpukit/libfs/src/rfs/rtems-rfs-file.c
@@ -20,6 +20,7 @@
#endif
#include <inttypes.h>
+#include <stdlib.h>
#include <string.h>
#include <rtems/rfs/rtems-rfs-block-pos.h>
diff --git a/cpukit/libfs/src/rfs/rtems-rfs-shell.c b/cpukit/libfs/src/rfs/rtems-rfs-shell.c
index 96d65e3..6314799 100644
--- a/cpukit/libfs/src/rfs/rtems-rfs-shell.c
+++ b/cpukit/libfs/src/rfs/rtems-rfs-shell.c
@@ -18,6 +18,7 @@
#endif
#include <inttypes.h>
+#include <stdlib.h>
#include <string.h>
#include <rtems/rfs/rtems-rfs-block.h>
More information about the vc
mailing list