gpm: Patch gpm.c to get struct ucred definition
PATCH 1/1 gpm: Patch gpm.c to get struct ucred definition
Gpm is currently failing to build because struct ucred is only defined with "#define __USE_GNU".
Signed-off-by Martyn Welch <[email protected]>
---
recipes/gpm/gpm-1.20.1/ucred-include.patch | 11 +++++++++++ recipes/gpm/gpm_1.20.1.bb | 3 ++- 2 files changed, 13 insertions(+), 1 deletions(-)
recipes/gpm/gpm-1.20.1/ucred-include.patch new file +11 -0
@@ -0,0 +1,11 @@ +diff -urN gpm-1.20.1/src/gpm.c gpm-1.20.1.new/src/gpm.c +--- gpm-1.20.1/src/gpm.c 2010-05-12 14:42:01.000000000 +0100 ++++ gpm-1.20.1.new/src/gpm.c 2010-05-12 15:31:06.000000000 +0100 +@@ -34,6 +34,7 @@ + #include <sys/stat.h> /* mkdir() */ + #include <sys/time.h> /* timeval */ + #include <sys/types.h> /* socket() */ ++#define __USE_GNU /* needed for struct ucred in sys/socket.h */ + #include <sys/socket.h> /* socket() */ + #include <sys/un.h> /* struct sockaddr_un */ +
recipes/gpm/gpm_1.20.1.bb +2 -1
@@ -5,13 +5,14 @@ SECTION = "console/utils" LICENSE = "GPL" DEPENDS = "ncurses" -PR = "r3" +PR = "r4" PARALLEL_MAKE = "" SRC_URI = "ftp://arcana.linux.it/pub/gpm/gpm-${PV}.tar.bz2 \ file://configure.patch;patch=1 \ file://no-docs.patch;patch=1 \ file://gpm-OPEN_MAX.patch;patch=1 \ + file://ucred-include.patch;patch=1 \ file://init" inherit autotools update-rc.d
--
Martyn Welch (Principal Software Engineer) | Registered in England and GE Intelligent Platforms | Wales (3828642) at 100 T +44(0)127322748 | Barbirolli Square, Manchester, E [email protected] | M2 3AB VAT:GB 927559189