[oe-commits] Dmitry Eremin-Solenikov : gpm: fix compilation due to missing struct ucred

git version control git at git.openembedded.org
Wed Sep 29 13:54:44 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 015e393510da2c49ec332b788425e0d3f7d853a0
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=015e393510da2c49ec332b788425e0d3f7d853a0

Author: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>
Date:   Wed Sep 29 17:53:51 2010 +0400

gpm: fix compilation due to missing struct ucred

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>

---

 recipes/gpm/gpm-1.99.7/processcreds.patch |   12 ++++++++++++
 recipes/gpm/gpm_1.99.7.bb                 |    1 +
 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 0000000..d647eca
--- /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 4f5ef02..02f048b 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





More information about the Openembedded-commits mailing list