aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/xmodmap-asprintf.patch
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-11-25 23:29:13 +0100
committerLudovic Courtès <ludo@gnu.org>2013-11-26 00:20:58 +0100
commita8300ef9fd022e1e94fbeb626cbc9b2a43afd03b (patch)
treecf79843c2b6567e1edea63197bd2e66ca9f2a35b /gnu/packages/patches/xmodmap-asprintf.patch
parent07cec9a5b96c09d8f8a1bb49f3677695307f39f5 (diff)
downloadguix-a8300ef9fd022e1e94fbeb626cbc9b2a43afd03b.tar
guix-a8300ef9fd022e1e94fbeb626cbc9b2a43afd03b.tar.gz
gnu: xmodmap: Add patch to allow builds with GCC 4.8.
* gnu/packages/patches/xmodmap-asprintf.patch: New file. * gnu/packages/xorg.scm (xmodmap): Use it. * gnu-system.am (dist_patch_DATA): Add it.
Diffstat (limited to 'gnu/packages/patches/xmodmap-asprintf.patch')
-rw-r--r--gnu/packages/patches/xmodmap-asprintf.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/gnu/packages/patches/xmodmap-asprintf.patch b/gnu/packages/patches/xmodmap-asprintf.patch
new file mode 100644
index 0000000000..6dfe8514e5
--- /dev/null
+++ b/gnu/packages/patches/xmodmap-asprintf.patch
@@ -0,0 +1,14 @@
+This patch allows the 'asprintf' declaration to be visible, by
+including <config.h>, which defines _GNU_SOURCE.
+
+
+--- xmodmap-1.0.7/xmodmap.c 2013-11-25 23:25:25.000000000 +0100
++++ xmodmap-1.0.7/xmodmap.c 2013-11-25 23:25:27.000000000 +0100
+@@ -26,6 +26,7 @@ from The Open Group.
+
+ */
+
++#include <config.h>
+ #include <X11/Xos.h>
+ #include <X11/Xlib.h>
+ #include <stdio.h>