From 1bf60fe70530b54402fbc7cb428ae992d0a2aff8 Mon Sep 17 00:00:00 2001 From: koldo Date: Mon, 30 Nov 2020 07:13:55 +0000 Subject: [PATCH] SysInfo: Fixed Alpine Linux problem thanks to Novo git-svn-id: svn://ultimatepp.org/upp/trunk@15550 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- bazaar/SysInfo/SysInfo.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bazaar/SysInfo/SysInfo.cpp b/bazaar/SysInfo/SysInfo.cpp index 281f7b37a..d18d562a7 100644 --- a/bazaar/SysInfo/SysInfo.cpp +++ b/bazaar/SysInfo/SysInfo.cpp @@ -1745,7 +1745,9 @@ bool Shutdown(String action) { } else if (action == "reboot") { // LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2 sync(); sleep(1); -#if __GNU_LIBRARY__ > 5 +#if !defined(__GNU_LIBRARY__) + reboot(0x01234567); +#elif __GNU_LIBRARY__ > 5 reboot(0x01234567); #else reboot(0xfee1dead, 672274793, 0x01234567);