Use correct defines
This commit is contained in:
parent
144d9653e1
commit
f7583144f3
4
src/rc.c
4
src/rc.c
@ -512,7 +512,7 @@ static void sulogin (bool cont)
|
|||||||
}
|
}
|
||||||
waitpid (pid, &status, 0);
|
waitpid (pid, &status, 0);
|
||||||
} else {
|
} else {
|
||||||
#ifdef __linux
|
#ifdef __linux__
|
||||||
execle ("/sbin/sulogin", "/sbin/sulogin", (char *) NULL, newenv);
|
execle ("/sbin/sulogin", "/sbin/sulogin", (char *) NULL, newenv);
|
||||||
eerrorx ("%s: unable to exec `/sbin/sulogin': %s", applet, strerror (errno));
|
eerrorx ("%s: unable to exec `/sbin/sulogin': %s", applet, strerror (errno));
|
||||||
#else
|
#else
|
||||||
@ -955,7 +955,7 @@ int main (int argc, char **argv)
|
|||||||
strcmp (RUNLEVEL, "0") != 0)
|
strcmp (RUNLEVEL, "0") != 0)
|
||||||
{
|
{
|
||||||
execl (SHUTDOWN, SHUTDOWN,
|
execl (SHUTDOWN, SHUTDOWN,
|
||||||
#ifdef __linux
|
#ifdef __linux__
|
||||||
"-h",
|
"-h",
|
||||||
#else
|
#else
|
||||||
"-p",
|
"-p",
|
||||||
|
Loading…
Reference in New Issue
Block a user