summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko2008-02-12 07:40:29 +0000
committerDenis Vlasenko2008-02-12 07:40:29 +0000
commite26b2783a5d8e69d14e5531244c4f2c93312e715 (patch)
tree65649191937df813732eda47200d1fb8faba3a7e
parent648b44fd785f8d23e363886ff306e8ef70d148ba (diff)
downloadbusybox-e26b2783a5d8e69d14e5531244c4f2c93312e715.zip
busybox-e26b2783a5d8e69d14e5531244c4f2c93312e715.tar.gz
ash: fix warning about _GNU_SOURCE being redefined, fix typo in comment.
-rw-r--r--shell/ash.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index a877b5b..0634f18 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -51,8 +51,10 @@
#endif
#if DEBUG
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
+#endif
#include "busybox.h" /* for applet_names */
#include <paths.h>
#include <setjmp.h>
@@ -6500,7 +6502,7 @@ struct builtincmd {
/* unsigned flags; */
};
#define IS_BUILTIN_SPECIAL(b) ((b)->name[0] & 1)
-/* "regular" bltins always take precedence over commands,
+/* "regular" builtins always take precedence over commands,
* regardless of PATH=....%builtin... position */
#define IS_BUILTIN_REGULAR(b) ((b)->name[0] & 2)
#define IS_BUILTIN_ASSIGN(b) ((b)->name[0] & 4)