changeset 1552:183857c0ce4b

* src/fs/fileio.c: Only include IO package headers if required.
author asl
date Thu, 18 Mar 2004 15:14:11 +0000
parents 996bb9a3d7fe
children 43adf3b81170
files packages/redboot/current/ChangeLog packages/redboot/current/src/fs/fileio.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/packages/redboot/current/ChangeLog
+++ b/packages/redboot/current/ChangeLog
@@ -1,3 +1,7 @@
+2004-03-17  Thomas Koeller <thomas.koeller@baslerweb.com>
+
+       * src/fs/fileio.c: Only include IO package headers if required.
+
 2004-03-02  Andrew Dyer  <adyer@righthandtech.com>
 
 	* src/load.c: add -p option to help string and only print it and -h if
--- a/packages/redboot/current/src/fs/fileio.c
+++ b/packages/redboot/current/src/fs/fileio.c
@@ -63,9 +63,11 @@
 #include <fcntl.h>
 #include <unistd.h>
 #include <string.h>
+#ifdef CYGPKG_IO_FLASH_BLOCK_DEVICE
 #include <cyg/io/io.h>
 #include <cyg/io/flash.h>
 #include <cyg/io/config_keys.h>
+#endif
 #include <cyg/fileio/fileio.h>
 
 static void do_mount(int argc, char *argv[]);