summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2003-11-20 12:14:50 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2003-11-20 12:14:50 +0000
commit006fa1ef77b4cdbbffc038bf4759eb96791d8d7c (patch)
tree89bfa3867cce6b11e0fc3272feb28299ed5d8534
parent0fa54a0be5be116d83c8ebfb22549dbe4b35ab45 (diff)
downloadrtems-006fa1ef77b4cdbbffc038bf4759eb96791d8d7c.tar.bz2
2003-11-20 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: AM_CPPFLAGS += -I$(top_builddir). Use AM_CPPFLAGS instead of AM_CFLAGS. * src/ata.c: Include config.h. * src/bdbuf.c: Ditto. * src/blkdev.c: Ditto. * src/diskdevs.c: Ditto. * src/ide_part_table.c: Ditto. * src/ramdisk.c: Ditto.
-rw-r--r--cpukit/libblock/ChangeLog11
-rw-r--r--cpukit/libblock/Makefile.am3
-rw-r--r--cpukit/libblock/src/ata.c5
-rw-r--r--cpukit/libblock/src/bdbuf.c4
-rw-r--r--cpukit/libblock/src/blkdev.c4
-rw-r--r--cpukit/libblock/src/diskdevs.c3
-rw-r--r--cpukit/libblock/src/ide_part_table.c7
-rw-r--r--cpukit/libblock/src/ramdisk.c4
8 files changed, 39 insertions, 2 deletions
diff --git a/cpukit/libblock/ChangeLog b/cpukit/libblock/ChangeLog
index 4ca9a9da7c..749b2c15c4 100644
--- a/cpukit/libblock/ChangeLog
+++ b/cpukit/libblock/ChangeLog
@@ -1,3 +1,14 @@
+2003-11-20 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+
+ * Makefile.am: AM_CPPFLAGS += -I$(top_builddir).
+ Use AM_CPPFLAGS instead of AM_CFLAGS.
+ * src/ata.c: Include config.h.
+ * src/bdbuf.c: Ditto.
+ * src/blkdev.c: Ditto.
+ * src/diskdevs.c: Ditto.
+ * src/ide_part_table.c: Ditto.
+ * src/ramdisk.c: Ditto.
+
2003-09-04 Joel Sherrill <joel@OARcorp.com>
* include/rtems/ide_part_table.h, src/ata.c, src/ide_part_table.c: URL
diff --git a/cpukit/libblock/Makefile.am b/cpukit/libblock/Makefile.am
index cbbac6d602..e2fc60eb1d 100644
--- a/cpukit/libblock/Makefile.am
+++ b/cpukit/libblock/Makefile.am
@@ -29,7 +29,8 @@ C_FILES = src/bdbuf.c src/blkdev.c src/diskdevs.c src/ramdisk.c\
OBJS = $(C_FILES:src/%.c=${ARCH}/%.$(OBJEXT))
-AM_CFLAGS += $(LIBC_DEFINES)
+AM_CPPFLAGS += -I$(top_builddir)
+AM_CPPFLAGS += $(LIBC_DEFINES)
${ARCH}/%.$(OBJEXT): src/%.c
${COMPILE} -o $@ -c $<
diff --git a/cpukit/libblock/src/ata.c b/cpukit/libblock/src/ata.c
index e93a8e244e..457bc27824 100644
--- a/cpukit/libblock/src/ata.c
+++ b/cpukit/libblock/src/ata.c
@@ -15,6 +15,11 @@
* $Id$
*
*/
+
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <errno.h>
#include <chain.h>
#include <assert.h>
diff --git a/cpukit/libblock/src/bdbuf.c b/cpukit/libblock/src/bdbuf.c
index 16c39f8df7..58c0c92055 100644
--- a/cpukit/libblock/src/bdbuf.c
+++ b/cpukit/libblock/src/bdbuf.c
@@ -10,6 +10,10 @@
* @(#) $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
#include <rtems.h>
#include <limits.h>
diff --git a/cpukit/libblock/src/blkdev.c b/cpukit/libblock/src/blkdev.c
index 1d5746f472..eab8ba9cd5 100644
--- a/cpukit/libblock/src/blkdev.c
+++ b/cpukit/libblock/src/blkdev.c
@@ -7,6 +7,10 @@
* @(#) $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <string.h>
#include <rtems.h>
diff --git a/cpukit/libblock/src/diskdevs.c b/cpukit/libblock/src/diskdevs.c
index f85945aadf..569e0f8e6c 100644
--- a/cpukit/libblock/src/diskdevs.c
+++ b/cpukit/libblock/src/diskdevs.c
@@ -7,6 +7,9 @@
* @(#) $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <rtems.h>
#include <rtems/libio.h>
diff --git a/cpukit/libblock/src/ide_part_table.c b/cpukit/libblock/src/ide_part_table.c
index 7762eb70c6..2a9d98c6a4 100644
--- a/cpukit/libblock/src/ide_part_table.c
+++ b/cpukit/libblock/src/ide_part_table.c
@@ -18,9 +18,14 @@
*
*****************************************************************************/
-#include <rtems/ide_part_table.h>
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <string.h>
+#include <rtems/ide_part_table.h>
+
/*
* get_sector --
* gets sector from the disk
diff --git a/cpukit/libblock/src/ramdisk.c b/cpukit/libblock/src/ramdisk.c
index 99d90bd1e5..27bc01e302 100644
--- a/cpukit/libblock/src/ramdisk.c
+++ b/cpukit/libblock/src/ramdisk.c
@@ -6,6 +6,10 @@
* @(#) $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#include <rtems/libio.h>
#include <errno.h>