summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2017-05-22 10:31:52 -0400
committerAnthony G. Basile <blueness@gentoo.org>2017-05-22 10:32:11 -0400
commit7e05387894905203abef04bac72fde7c3003df94 (patch)
treea70fc56c5a6913b2529fdc632968dfeea15c6ee1 /sys-libs/uclibc-ng/files
parentnet-dns/bind-tools-9.11.0_p5-r0: add alpha keyword (diff)
downloadgentoo-7e05387894905203abef04bac72fde7c3003df94.tar.gz
gentoo-7e05387894905203abef04bac72fde7c3003df94.tar.bz2
gentoo-7e05387894905203abef04bac72fde7c3003df94.zip
sys-libs/uclibc-ng: fix bug #619190
Package-Manager: Portage-2.3.5, Repoman-2.3.1
Diffstat (limited to 'sys-libs/uclibc-ng/files')
-rw-r--r--sys-libs/uclibc-ng/files/uclibc-ng-update-reboot_h.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/sys-libs/uclibc-ng/files/uclibc-ng-update-reboot_h.patch b/sys-libs/uclibc-ng/files/uclibc-ng-update-reboot_h.patch
new file mode 100644
index 000000000000..70d7d709b624
--- /dev/null
+++ b/sys-libs/uclibc-ng/files/uclibc-ng-update-reboot_h.patch
@@ -0,0 +1,41 @@
+From 5a305695ad09696bc27c1928deedabbc9e93da55 Mon Sep 17 00:00:00 2001
+From: "Anthony G. Basile" <blueness@gentoo.org>
+Date: Mon, 22 May 2017 09:57:27 -0400
+Subject: [PATCH] include/sys/reboot.h: add constants RB_SW_SUSPEND and
+ RB_KEXEC
+
+This syncs up <sys/reboot.h> with the GNU C library, see their
+commit 1a09dc56. These constants are needed by init systems like
+openrc.
+
+Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
+---
+ include/sys/reboot.h | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/include/sys/reboot.h b/include/sys/reboot.h
+index bc685aebb..fafd2fb0c 100644
+--- a/include/sys/reboot.h
++++ b/include/sys/reboot.h
+@@ -1,4 +1,4 @@
+-/* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
++/* Copyright (C) 1996-2017 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+@@ -38,6 +38,12 @@
+ /* Stop system and switch power off if possible. */
+ #define RB_POWER_OFF 0x4321fedc
+
++/* Suspend system using software suspend. */
++#define RB_SW_SUSPEND 0xd000fce2
++
++/* Reboot system into new kernel. */
++#define RB_KEXEC 0x45584543
++
+ __BEGIN_DECLS
+
+ /* Reboot or halt the system. */
+--
+2.13.0
+