summary refs log tree commit diff
path: root/pkgs/os-specific/linux/util-linux/linux-specific-header.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/os-specific/linux/util-linux/linux-specific-header.patch')
-rw-r--r--pkgs/os-specific/linux/util-linux/linux-specific-header.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/util-linux/linux-specific-header.patch b/pkgs/os-specific/linux/util-linux/linux-specific-header.patch
new file mode 100644
index 00000000000..8d0b57dea3f
--- /dev/null
+++ b/pkgs/os-specific/linux/util-linux/linux-specific-header.patch
@@ -0,0 +1,16 @@
+The <asm/param.h> header is Linux-only and breaks GNU/Hurd builds.
+
+--- util-linux-2.20.1/term-utils/write.c	2012-03-07 23:06:14.000000000 +0100
++++ util-linux-2.20.1/term-utils/write.c	2012-03-07 23:06:19.000000000 +0100
+@@ -57,7 +57,9 @@
+ #include <sys/param.h>
+ #include <sys/stat.h>
+ #include <paths.h>
+-#include <asm/param.h>
++#ifdef __linux__
++# include <asm/param.h>
++#endif
+ #include <getopt.h>
+ #include "c.h"
+ #include "carefulputc.h"
+