summaryrefslogtreecommitdiff
path: root/packages/flex/files/flex-lvalue.diff
diff options
context:
space:
mode:
authorMike Westerhof <mwester@dls.net>2006-04-11 03:19:51 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-04-11 03:19:51 +0000
commit0c21d985cd31b9c3f14aed86c0632e160d5a3549 (patch)
tree84ee3cdd290cea4a659bd4a36c967a0f346d536b /packages/flex/files/flex-lvalue.diff
parent2b1e71a99eb85c82e4f5fbe16ad7d99ca250072a (diff)
parent734c5296cdfc25ec221233f49455e1280a64a595 (diff)
merge of 39e43f0486c5d18bb8979c53687235b3f04855de
and 738b5da14d9fd2be6600c5eb848647017fac3413
Diffstat (limited to 'packages/flex/files/flex-lvalue.diff')
-rw-r--r--packages/flex/files/flex-lvalue.diff36
1 files changed, 36 insertions, 0 deletions
diff --git a/packages/flex/files/flex-lvalue.diff b/packages/flex/files/flex-lvalue.diff
new file mode 100644
index 0000000000..56ae539a6c
--- /dev/null
+++ b/packages/flex/files/flex-lvalue.diff
@@ -0,0 +1,36 @@
+Patch from http://bugs.debian.org/cgi-bin/bugreport.cgi/flex-lvalue.diff?bug=194844;msg=10;att=1
+
+according to posix 0,1,2 are already setup and this avoids
+the issues with
+| filter.c: In function 'filter_apply_chain':
+| filter.c:161: error: invalid lvalue in assignment
+| filter.c:163: error: invalid lvalue in assignment
+| filter.c:184: error: invalid lvalue in assignment
+
+
+diff -ur flex-2.5.31.ORIG/filter.c flex-2.5.31/filter.c
+--- flex-2.5.31.ORIG/filter.c 2003-03-25 16:39:08.000000000 +0000
++++ flex-2.5.31/filter.c 2003-05-27 17:00:26.000000000 +0000
+@@ -157,11 +157,8 @@
+ if (chain->filter_func) {
+ int r;
+
+- /* setup streams again */
+- if ((stdin = fdopen (0, "r")) == NULL)
+- flexfatal (_("fdopen(0) failed"));
+- if ((stdout = fdopen (1, "w")) == NULL)
+- flexfatal (_("fdopen(1) failed"));
++ /* POSIX says we inherit fd[0-2], so we don't need
++ to do anything to them here */
+
+ if ((r = chain->filter_func (chain)) == -1)
+ flexfatal (_("filter_func failed"));
+@@ -181,8 +178,6 @@
+ if (dup2 (pipes[1], 1) == -1)
+ flexfatal (_("dup2(pipes[1],1)"));
+ close (pipes[1]);
+- if ((stdout = fdopen (1, "w")) == NULL)
+- flexfatal (_("fdopen(1) failed"));
+
+ return true;
+ }