add c_mknod() if MKSH_NEED_MKNOD even if MKSH_SMALL

This commit is contained in:
tg 2007-01-26 18:37:26 +00:00
parent 8d696d001e
commit ffc0a2e438

View File

@ -5,7 +5,7 @@
#include "sh.h" #include "sh.h"
__RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.45 2007/01/15 00:18:47 tg Exp $"); __RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.46 2007/01/26 18:37:26 tg Exp $");
int int
c_cd(char **wp) c_cd(char **wp)
@ -2190,7 +2190,7 @@ c_exec(char **wp __unused)
return 0; return 0;
} }
#ifndef MKSH_SMALL #if !defined(MKSH_SMALL) || defined(MKSH_NEED_MKNOD)
static int static int
c_mknod(char **wp) c_mknod(char **wp)
{ {
@ -2311,7 +2311,7 @@ const struct builtin shbuiltins [] = {
{"ulimit", c_ulimit}, {"ulimit", c_ulimit},
{"+umask", c_umask}, {"+umask", c_umask},
{"*=unset", c_unset}, {"*=unset", c_unset},
#ifndef MKSH_SMALL #if !defined(MKSH_SMALL) || defined(MKSH_NEED_MKNOD)
{"mknod", c_mknod}, {"mknod", c_mknod},
#endif #endif
{NULL, NULL} {NULL, NULL}