From: | "Christian Zoffoli (xmerlin)" <xmerlin@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-cluster/drbd/files: drbd-8.3.2-bitsperlong.h.patch |
Date: | Wed, 30 Sep 2009 14:00:57 |
Message-Id: | E1MszjB-0001kI-46@stork.gentoo.org |
1 | xmerlin 09/09/30 14:00:21 |
2 | |
3 | Added: drbd-8.3.2-bitsperlong.h.patch |
4 | Log: |
5 | Fixed compilation on newer kernels. |
6 | (Portage version: 2.1.4.5) |
7 | |
8 | Revision Changes Path |
9 | 1.1 sys-cluster/drbd/files/drbd-8.3.2-bitsperlong.h.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/drbd/files/drbd-8.3.2-bitsperlong.h.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/drbd/files/drbd-8.3.2-bitsperlong.h.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: drbd-8.3.2-bitsperlong.h.patch |
15 | =================================================================== |
16 | From: Lars Ellenberg <lars.ellenberg@××××××.com> |
17 | Date: Mon, 14 Sep 2009 11:33:26 +0000 (+0200) |
18 | Subject: compat: remove special -I$(KDIR)/include for drbdsetup |
19 | X-Git-Url: http://git.drbd.org/?p=drbd-8.3.git;a=commitdiff_plain;h=a6e36c389adb4485313191fd50405395fa3c1a74 |
20 | |
21 | compat: remove special -I$(KDIR)/include for drbdsetup |
22 | |
23 | Finally get rid of that special case hack. |
24 | --- |
25 | |
26 | diff --git a/user/Makefile b/user/Makefile |
27 | index 04cdcae..0143e09 100644 |
28 | --- a/user/Makefile |
29 | +++ b/user/Makefile |
30 | @@ -22,8 +22,6 @@ KDIR := /lib/modules/$(shell uname -r)/build |
31 | CC = gcc |
32 | OPTFLAGS = -O1 |
33 | CFLAGS = $(OPTFLAGS) -c -W -Wall -I../drbd |
34 | -# for the netlink connector stuff <linux/connector.h>: |
35 | -drbdsetup: CFLAGS += -I$(KDIR)/include |
36 | |
37 | drbdadm-obj = drbdadm_scanner.o drbdadm_parser.o drbdadm_main.o \ |
38 | drbdadm_adjust.o drbdtool_common.o drbdadm_usage_cnt.o \ |
39 | diff --git a/user/drbdsetup.c b/user/drbdsetup.c |
40 | index 4c3d132..d3b353d 100644 |
41 | --- a/user/drbdsetup.c |
42 | +++ b/user/drbdsetup.c |
43 | @@ -46,6 +46,7 @@ |
44 | #include <time.h> |
45 | |
46 | #define __bitwise /* Build-workaround for broken RHEL4 kernels (2.6.9_78.0.1) */ |
47 | +#include <linux/types.h> |
48 | #include <linux/netlink.h> |
49 | #include <linux/connector.h> |