Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dccdb942 authored by Pavel Chupin's avatar Pavel Chupin Committed by Elliott Hughes
Browse files

Replace __reboot call with syscall



__reboot is hidden for 64-bits and should be hidden on others

Change-Id: Ib6435269aac7fa726e49cc02f8f76d2be2875bc6
Signed-off-by: default avatarPavel Chupin <pavel.v.chupin@intel.com>
parent 048bb92f
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -16,6 +16,7 @@


#include <unistd.h>
#include <unistd.h>
#include <sys/reboot.h>
#include <sys/reboot.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <fcntl.h>
@@ -121,7 +122,7 @@ int android_reboot(int cmd, int flags, char *arg)
            break;
            break;


        case ANDROID_RB_RESTART2:
        case ANDROID_RB_RESTART2:
            ret = __reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2,
            ret = syscall(__NR_reboot, LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2,
                           LINUX_REBOOT_CMD_RESTART2, arg);
                           LINUX_REBOOT_CMD_RESTART2, arg);
            break;
            break;