From cec1c64755f2da625d146dbb2ac07a2792c0450b Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Thu, 18 Aug 2016 00:11:11 +0200 Subject: [PATCH] Fix build on older (G)LIBC's w/o RB_SW_SUSPEND Signed-off-by: Joachim Nilsson --- reboot.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reboot.c b/reboot.c index 3656c86a..c8cc71f8 100644 --- a/reboot.c +++ b/reboot.c @@ -29,6 +29,10 @@ #include #include +#ifndef RB_SW_SUSPEND /* Since Linux 2.5.18, but not in GLIBC until 2.19 */ +#define RB_SW_SUSPEND 0xd000fce2 +#endif + typedef enum { CMD_UNKNOWN = -1, CMD_REBOOT = 0,