aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-10-28 01:21:22 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-10-28 01:21:22 +0000
commit7c16568e8f1c0ddc9f1a319d09305b31bd463231 (patch)
treee66b6da6af18e771e268fb6bd1b82ea043070408
parenta143c7b1e95b262fbc2fc961dffe3751471b78df (diff)
downloadbusybox-w32-7c16568e8f1c0ddc9f1a319d09305b31bd463231.tar.gz
busybox-w32-7c16568e8f1c0ddc9f1a319d09305b31bd463231.tar.bz2
busybox-w32-7c16568e8f1c0ddc9f1a319d09305b31bd463231.zip
We also need to declare info if the USERNAMES feature is enabled.
git-svn-id: svn://busybox.net/trunk/busybox@1264 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--coreutils/ls.c6
-rw-r--r--ls.c6
2 files changed, 8 insertions, 4 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c
index 4377256f6..b7329dfdf 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -433,7 +433,7 @@ void showdirs(struct dnode **dn, int ndirs)
433{ 433{
434 int i, nfiles; 434 int i, nfiles;
435 struct dnode **subdnp; 435 struct dnode **subdnp;
436#ifdef BB_FEATURE_LS_SORTFILES 436#ifdef BB_FEATURE_LS_RECURSIVE
437 int dndirs; 437 int dndirs;
438 struct dnode **dnd; 438 struct dnode **dnd;
439#endif 439#endif
@@ -529,8 +529,10 @@ int list_single(struct dnode *dn)
529 char *filetime; 529 char *filetime;
530 time_t ttime, age; 530 time_t ttime, age;
531#endif 531#endif
532#ifdef BB_FEATURE_LS_FILETYPES 532#if defined (BB_FEATURE_LS_FILETYPES) || defined (BB_FEATURE_LS_USERNAME)
533 struct stat info; 533 struct stat info;
534#endif
535#ifdef BB_FEATURE_LS_FILETYPES
534 char append; 536 char append;
535#endif 537#endif
536 538
diff --git a/ls.c b/ls.c
index 4377256f6..b7329dfdf 100644
--- a/ls.c
+++ b/ls.c
@@ -433,7 +433,7 @@ void showdirs(struct dnode **dn, int ndirs)
433{ 433{
434 int i, nfiles; 434 int i, nfiles;
435 struct dnode **subdnp; 435 struct dnode **subdnp;
436#ifdef BB_FEATURE_LS_SORTFILES 436#ifdef BB_FEATURE_LS_RECURSIVE
437 int dndirs; 437 int dndirs;
438 struct dnode **dnd; 438 struct dnode **dnd;
439#endif 439#endif
@@ -529,8 +529,10 @@ int list_single(struct dnode *dn)
529 char *filetime; 529 char *filetime;
530 time_t ttime, age; 530 time_t ttime, age;
531#endif 531#endif
532#ifdef BB_FEATURE_LS_FILETYPES 532#if defined (BB_FEATURE_LS_FILETYPES) || defined (BB_FEATURE_LS_USERNAME)
533 struct stat info; 533 struct stat info;
534#endif
535#ifdef BB_FEATURE_LS_FILETYPES
534 char append; 536 char append;
535#endif 537#endif
536 538