mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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.
This commit is contained in:
parent
07cec9a5b9
commit
a8300ef9fd
3 changed files with 18 additions and 1 deletions
14
gnu/packages/patches/xmodmap-asprintf.patch
Normal file
14
gnu/packages/patches/xmodmap-asprintf.patch
Normal file
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue