aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gpm
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2010-09-29 17:53:51 +0400
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2010-09-29 17:53:51 +0400
commit015e393510da2c49ec332b788425e0d3f7d853a0 (patch)
tree5655908d5bdc9cb0d8c13c1a756fb0f0dec74325 /recipes/gpm
parentcfb5385859d0826acfddeef7766ecee7a51dc92c (diff)
downloadopenembedded-015e393510da2c49ec332b788425e0d3f7d853a0.tar.gz
openembedded-015e393510da2c49ec332b788425e0d3f7d853a0.tar.bz2
openembedded-015e393510da2c49ec332b788425e0d3f7d853a0.zip
gpm: fix compilation due to missing struct ucred
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'recipes/gpm')
-rw-r--r--recipes/gpm/gpm-1.99.7/processcreds.patch12
-rw-r--r--recipes/gpm/gpm_1.99.7.bb1
2 files changed, 13 insertions, 0 deletions
diff --git a/recipes/gpm/gpm-1.99.7/processcreds.patch b/recipes/gpm/gpm-1.99.7/processcreds.patch
new file mode 100644
index 0000000000..d647eca0ad
--- /dev/null
+++ b/recipes/gpm/gpm-1.99.7/processcreds.patch
@@ -0,0 +1,12 @@
+Index: gpm-1.99.7/src/daemon/processconn.c
+===================================================================
+--- gpm-1.99.7.orig/src/daemon/processconn.c 2010-09-29 17:36:18.571782951 +0400
++++ gpm-1.99.7/src/daemon/processconn.c 2010-09-29 17:42:44.659991758 +0400
+@@ -20,6 +20,7 @@
+ *
+ ********/
+
++#define _GNU_SOURCE
+ #include <sys/socket.h> /* accept */
+ #include <stdlib.h> /* malloc */
+ #include <unistd.h> /* close */
diff --git a/recipes/gpm/gpm_1.99.7.bb b/recipes/gpm/gpm_1.99.7.bb
index 4f5ef023b4..02f048b41f 100644
--- a/recipes/gpm/gpm_1.99.7.bb
+++ b/recipes/gpm/gpm_1.99.7.bb
@@ -9,6 +9,7 @@ PR = "r1"
SRC_URI = "ftp://arcana.linux.it/pub/gpm/gpm-${PV}.tar.bz2 \
file://no-docs.patch \
+ file://processcreds.patch \
file://init"
inherit autotools update-rc.d