changeset 2398:1cc00c5dc8b1

* src/misc.cxx (cyg_mtab_extra): Only create the array if it has more than 0 entries.
author asl
date Tue, 12 Jun 2007 20:02:21 +0000
parents 64c9e46ea486
children ca28b7d466b8
files packages/io/fileio/current/ChangeLog packages/io/fileio/current/src/misc.cxx
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/io/fileio/current/ChangeLog
+++ b/packages/io/fileio/current/ChangeLog
@@ -1,3 +1,8 @@
+2007-06-12  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+	* src/misc.cxx (cyg_mtab_extra): Only create the array if it has more
+	than 0 entries.
+
 2007-01-27  Andrew Lunn  <andrew.lunn@ascom.ch>
 
 	* tests/fnmatch.c: Test case for fnmatch.
--- a/packages/io/fileio/current/src/misc.cxx
+++ b/packages/io/fileio/current/src/misc.cxx
@@ -113,8 +113,9 @@ static Cyg_Mutex fstab_lock[CYGNUM_FILEI
 CYG_HAL_TABLE_BEGIN( cyg_mtab, mtab );
 
 // Extra entries at end of mtab for dynamic mount points.
+#if CYGNUM_FILEIO_MTAB_EXTRA > 0
 cyg_mtab_entry cyg_mtab_extra[CYGNUM_FILEIO_MTAB_EXTRA] CYG_HAL_TABLE_EXTRA(mtab) = { { NULL } };
-
+#endif
 // End of mount table, set in the linker script.
 __externC cyg_mtab_entry cyg_mtab_end;
 CYG_HAL_TABLE_END( cyg_mtab_end, mtab );