[Pkg-wmaker-commits] [wmhdplop] 20/40: debian/patches/kfreebsd_port.patch: Fix FTBFS on kfreebsd due to lack of linux/major.h.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 17 11:10:12 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmhdplop.

commit cdb5d63cd86253b4d850108d92cc85ec9967881a
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Wed Aug 13 07:56:33 2014 -0500

    debian/patches/kfreebsd_port.patch: Fix FTBFS on kfreebsd due to lack of
    linux/major.h.
---
 debian/patches/kfreebsd_port.patch | 22 ++++++++++++++++++++++
 debian/patches/series              |  1 +
 2 files changed, 23 insertions(+)

diff --git a/debian/patches/kfreebsd_port.patch b/debian/patches/kfreebsd_port.patch
new file mode 100644
index 0000000..31b810a
--- /dev/null
+++ b/debian/patches/kfreebsd_port.patch
@@ -0,0 +1,22 @@
+--- a/devnames.c
++++ b/devnames.c
+@@ -5,7 +5,19 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <unistd.h>
++#ifdef __linux__
+ #include <linux/major.h>
++#else
++#define SCSI_DISK0_MAJOR	8
++#define IDE0_MAJOR		3
++#define IDE1_MAJOR		22
++#define IDE2_MAJOR		33
++#define IDE3_MAJOR		34
++#define IDE4_MAJOR		56
++#define IDE5_MAJOR		57
++#define IDE6_MAJOR		88
++#define MD_MAJOR		9
++#endif
+ #include <ctype.h>
+ #include "global.h"
+ #include "devnames.h"
diff --git a/debian/patches/series b/debian/patches/series
index 47dc012..de73b95 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 fix-ftbfs-gcc-4.7-667415.patch
 ldflags-to-ldadd.patch
 find-disk-device.patch
+kfreebsd_port.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmhdplop.git



More information about the Pkg-wmaker-commits mailing list