summaryrefslogtreecommitdiff
path: root/nuttx/examples/nsh/nsh_fscmds.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-12-31 23:52:53 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-12-31 23:52:53 +0000
commit768b31742994a7270a11f6b0393329b3404b2af0 (patch)
tree07225e24cd679bcd042f722dc39514fa90ba541c /nuttx/examples/nsh/nsh_fscmds.c
parente56f12fd3dbddb72e0a3996a1247d27bad227cd5 (diff)
downloadnuttx-768b31742994a7270a11f6b0393329b3404b2af0.tar.gz
nuttx-768b31742994a7270a11f6b0393329b3404b2af0.tar.bz2
nuttx-768b31742994a7270a11f6b0393329b3404b2af0.zip
Debug NSH on z80sim
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@474 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/nsh/nsh_fscmds.c')
-rw-r--r--nuttx/examples/nsh/nsh_fscmds.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/nuttx/examples/nsh/nsh_fscmds.c b/nuttx/examples/nsh/nsh_fscmds.c
index 6f7a38a50..d5dc1c947 100644
--- a/nuttx/examples/nsh/nsh_fscmds.c
+++ b/nuttx/examples/nsh/nsh_fscmds.c
@@ -1,7 +1,7 @@
/****************************************************************************
- * nsh_fscmds.c
+ * examples/nsh/nsh_fscmds.c
*
- * Copyright (C) 2007 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -14,7 +14,7 @@
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
- * 3. Neither the name Gregory Nutt nor the names of its contributors may be
+ * 3. Neither the name NuttX nor the names of its contributors may be
* used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -45,7 +45,9 @@
# include <fcntl.h>
#endif
#if !defined(CONFIG_DISABLE_MOUNTPOINT) && CONFIG_NFILE_DESCRIPTORS > 0
-# include <sys/mount.h>
+# ifdef CONFIG_FS_FAT /* Need at least one filesytem in configuration */
+# include <sys/mount.h>
+# endif
#endif
#include <stdio.h>
@@ -636,6 +638,7 @@ void cmd_mkdir(FAR void *handle, int argc, char **argv)
****************************************************************************/
#if !defined(CONFIG_DISABLE_MOUNTPOINT) && CONFIG_NFILE_DESCRIPTORS > 0
+#ifdef CONFIG_FS_FAT /* Need at least one filesytem in configuration */
void cmd_mount(FAR void *handle, int argc, char **argv)
{
char *filesystem = 0;
@@ -684,6 +687,7 @@ void cmd_mount(FAR void *handle, int argc, char **argv)
}
}
#endif
+#endif
/****************************************************************************
* Name: cmd_rm
@@ -718,6 +722,7 @@ void cmd_rmdir(FAR void *handle, int argc, char **argv)
****************************************************************************/
#if !defined(CONFIG_DISABLE_MOUNTPOINT) && CONFIG_NFILE_DESCRIPTORS > 0
+#ifdef CONFIG_FS_FAT /* Need at least one filesytem in configuration */
void cmd_umount(FAR void *handle, int argc, char **argv)
{
/* Perform the umount */
@@ -728,3 +733,4 @@ void cmd_umount(FAR void *handle, int argc, char **argv)
}
}
#endif
+#endif