mirror of
https://github.com/troglobit/finit.git
synced 2026-11-06 15:51:03 +00:00
Fix build on older (G)LIBC's w/o RB_SW_SUSPEND
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
5bab329178
commit
cec1c64755
1 file changed
+4
@@ -29,6 +29,10 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/reboot.h>
|
#include <sys/reboot.h>
|
||||||
|
|
||||||
|
#ifndef RB_SW_SUSPEND /* Since Linux 2.5.18, but not in GLIBC until 2.19 */
|
||||||
|
#define RB_SW_SUSPEND 0xd000fce2
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
CMD_UNKNOWN = -1,
|
CMD_UNKNOWN = -1,
|
||||||
CMD_REBOOT = 0,
|
CMD_REBOOT = 0,
|
||||||
|
|||||||
Reference in new issue
Block a user