From 8b04d480e64d6830e061be32aa3b2fec67e40fa2 Mon Sep 17 00:00:00 2001 From: Jeremy Laine Date: Tue, 6 May 2008 14:15:28 +0000 Subject: gpm_1.20.1.bb: fix references to OPEN_MAX (Closes: #3762) --- packages/gpm/gpm-1.20.1/gpm-OPEN_MAX.patch | 46 ++++++++++++++++++++++++++++++ packages/gpm/gpm_1.20.1.bb | 3 +- 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 packages/gpm/gpm-1.20.1/gpm-OPEN_MAX.patch (limited to 'packages/gpm') diff --git a/packages/gpm/gpm-1.20.1/gpm-OPEN_MAX.patch b/packages/gpm/gpm-1.20.1/gpm-OPEN_MAX.patch new file mode 100644 index 0000000000..6fa86e1168 --- /dev/null +++ b/packages/gpm/gpm-1.20.1/gpm-OPEN_MAX.patch @@ -0,0 +1,46 @@ +Index: gpm-1.20.1/src/prog/gpm-root.y +=================================================================== +--- gpm-1.20.1.orig/src/prog/gpm-root.y ++++ gpm-1.20.1/src/prog/gpm-root.y +@@ -44,7 +44,6 @@ + #include /* fstat() */ + #include /* uname() */ + #include /* winsize */ +-#include /* OPEN_MAX */ + #include /* VT_ACTIVATE */ + #include /* K_SHIFT */ + #include +@@ -525,7 +524,9 @@ int f_bgcmd(int mode, DrawItem *self, in + open("/dev/null",O_RDONLY); /* stdin */ + open(consolename,O_WRONLY); /* stdout */ + dup(1); /* stderr */ +- for (i=3;iarg,(char *)NULL); + exit(1); /* shouldn't happen */ + default: return 0; +Index: gpm-1.20.1/src/special.c +=================================================================== +--- gpm-1.20.1.orig/src/special.c ++++ gpm-1.20.1/src/special.c +@@ -25,7 +25,6 @@ + + /* This file is compiled conditionally, see the Makefile */ + +-#include /* for OPEN_MAX */ + #include + #include + #include +@@ -155,7 +154,9 @@ int processSpecial(Gpm_Event *event) + open(GPM_NULL_DEV,O_RDONLY); /* stdin */ + open(option.consolename,O_WRONLY); /* stdout */ + dup(1); /* stderr */ +- for (i=3;i