aboutsummaryrefslogtreecommitdiff
path: root/ls.c
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-03-24 00:54:46 +0000
committerErik Andersen <andersen@codepoet.org>2000-03-24 00:54:46 +0000
commit1ad302ac903695ef4ba748d3880222c05eeaafef (patch)
treea03bebb080253f4a20f8d5335285a5e717106d36 /ls.c
parente454fb68a3165ca5cf42c290b4b9dc92dbf9a235 (diff)
downloadbusybox-1ad302ac903695ef4ba748d3880222c05eeaafef.tar.gz
The new tar for busybox is now done, and works just fine
for extracting files. Creation of tarballs is next... -Erik
Diffstat (limited to 'ls.c')
-rw-r--r--ls.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ls.c b/ls.c
index c4856cb71..3e010503c 100644
--- a/ls.c
+++ b/ls.c
@@ -90,6 +90,11 @@
#define DISP_DIRNAME 128 /* show directory name (for internal use) */
#define DIR_RECURSE 256 /* -R (not yet implemented) */
+#ifndef MAJOR
+#define MAJOR(dev) (((dev)>>8)&0xff)
+#define MINOR(dev) ((dev)&0xff)
+#endif
+
static unsigned char display_fmt = FMT_AUTO;
static unsigned short opts = 0;
static unsigned short column = 0;