X-Git-Url: https://git.saurik.com/apple/shell_cmds.git/blobdiff_plain/ddb4a88b2f582f98073e02a797c5299d71d9527e..71aad6740de6ae0068511076140d8875bbed2a15:/nohup/nohup.c diff --git a/nohup/nohup.c b/nohup/nohup.c index 4262680..f77dce5 100644 --- a/nohup/nohup.c +++ b/nohup/nohup.c @@ -57,6 +57,7 @@ __FBSDID("$FreeBSD: src/usr.bin/nohup/nohup.c,v 1.10 2003/05/03 19:44:46 obrien #include #ifdef __APPLE__ +#include #include #include #endif @@ -94,7 +95,7 @@ main(int argc, char *argv[]) (void)signal(SIGHUP, SIG_IGN); -#ifdef __APPLE__ +#if defined(__APPLE__) && !TARGET_OS_EMBEDDED if (_vprocmgr_detach_from_console(0) != NULL) err(EXIT_MISC, "can't detach from console"); #endif