diff options
Diffstat (limited to 'jim-posix.c')
-rw-r--r-- | jim-posix.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jim-posix.c b/jim-posix.c index e9d5bc3..5a6fb98 100644 --- a/jim-posix.c +++ b/jim-posix.c @@ -71,6 +71,7 @@ static int Jim_PosixForkCommand(Jim_Interp *interp, int argc, Jim_Obj *const *ar } #endif +#if !defined(JIM_BOOTSTRAP) static int Jim_PosixGetidsCommand(Jim_Interp *interp, int argc, Jim_Obj *const *argv) { Jim_Obj *objv[8]; @@ -134,6 +135,7 @@ static int Jim_PosixUptimeCommand(Jim_Interp *interp, int argc, Jim_Obj *const * #endif return JIM_OK; } +#endif /* JIM_BOOTSTRAP */ int Jim_posixInit(Jim_Interp *interp) { @@ -141,8 +143,10 @@ int Jim_posixInit(Jim_Interp *interp) #ifdef HAVE_FORK Jim_CreateCommand(interp, "os.fork", Jim_PosixForkCommand, NULL, NULL); #endif +#if !defined(JIM_BOOTSTRAP) Jim_CreateCommand(interp, "os.getids", Jim_PosixGetidsCommand, NULL, NULL); Jim_CreateCommand(interp, "os.gethostname", Jim_PosixGethostnameCommand, NULL, NULL); Jim_CreateCommand(interp, "os.uptime", Jim_PosixUptimeCommand, NULL, NULL); +#endif /* JIM_BOOTSTRAP */ return JIM_OK; } |