Skip to content

Commit

Permalink
sys-cluster/drbd-utils: Add missing sys/sysmacros.h include, bug 616758
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/616758
Package-Manager: Portage-2.3.31, Repoman-2.3.9
  • Loading branch information
akhuettel committed May 4, 2018
1 parent 8f7b674 commit 288250f
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sys-cluster/drbd-utils/drbd-utils-8.9.6-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ src_prepare() {

epatch "${FILESDIR}"/run-lock.patch

# bug 616758
epatch "${FILESDIR}/${P}"-sysmacros.patch

autoreconf
}

Expand Down
44 changes: 44 additions & 0 deletions sys-cluster/drbd-utils/files/drbd-utils-8.9.6-sysmacros.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
diff -ruN drbd-utils-8.9.6.orig/user/shared/shared_tool.c drbd-utils-8.9.6/user/shared/shared_tool.c
--- drbd-utils-8.9.6.orig/user/shared/shared_tool.c 2018-05-04 20:13:51.959412972 +0200
+++ drbd-utils-8.9.6/user/shared/shared_tool.c 2018-05-04 20:14:12.979679788 +0200
@@ -8,6 +8,7 @@
#define _FILE_OFFSET_BITS 64

#include <sys/types.h>
+#include <sys/sysmacros.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <fcntl.h>
diff -ruN drbd-utils-8.9.6.orig/user/v83/drbdadm_adjust.c drbd-utils-8.9.6/user/v83/drbdadm_adjust.c
--- drbd-utils-8.9.6.orig/user/v83/drbdadm_adjust.c 2015-02-11 17:33:00.000000000 +0100
+++ drbd-utils-8.9.6/user/v83/drbdadm_adjust.c 2018-05-04 20:15:08.060378940 +0200
@@ -25,6 +25,7 @@
#define _GNU_SOURCE

#include <sys/types.h>
+#include <sys/sysmacros.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <unistd.h>
diff -ruN drbd-utils-8.9.6.orig/user/v84/drbdadm_adjust.c drbd-utils-8.9.6/user/v84/drbdadm_adjust.c
--- drbd-utils-8.9.6.orig/user/v84/drbdadm_adjust.c 2015-05-08 15:16:31.000000000 +0200
+++ drbd-utils-8.9.6/user/v84/drbdadm_adjust.c 2018-05-04 20:14:42.192050588 +0200
@@ -27,6 +27,7 @@
#define _FILE_OFFSET_BITS 64

#include <sys/types.h>
+#include <sys/sysmacros.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <unistd.h>
diff -ruN drbd-utils-8.9.6.orig/user/v9/drbdadm_adjust.c drbd-utils-8.9.6/user/v9/drbdadm_adjust.c
--- drbd-utils-8.9.6.orig/user/v9/drbdadm_adjust.c 2018-05-04 20:13:51.960412985 +0200
+++ drbd-utils-8.9.6/user/v9/drbdadm_adjust.c 2018-05-04 20:14:12.980679801 +0200
@@ -27,6 +27,7 @@
#define _FILE_OFFSET_BITS 64

#include <sys/types.h>
+#include <sys/sysmacros.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <unistd.h>

0 comments on commit 288250f

Please sign in to comment.