]> code.ossystems Code Review - openembedded-core.git/commit
byacc: fix compilation on Ubuntu 14.04
authorRoss Burton <ross.burton@intel.com>
Wed, 26 Aug 2015 20:32:45 +0000 (21:32 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 30 Aug 2015 11:34:27 +0000 (12:34 +0100)
commitf906c5eb722de07eb09858fd058eb7e20103df71
tree246bd390deab75979c4ffd366b18bc4c526672b6
parent758abeb219520ab5556186babcdb7e6660ce6e40
byacc: fix compilation on Ubuntu 14.04

Ubuntu defaults to passing _FORTIFY_SOURCE=2 which breaks byacc as it doesn't
pass enough arguments to open():

inlined from 'open_tmpfile' at byacc-20150711/main.c:588:5:
/usr/include/x86_64-linux-gnu/bits/fcntl2.h:50:24: error: call to '__open_missing_mode' declared with attribute error:
open with O_CREAT in second argument needs 3 arguments

Add a mode of 0666 to fix this.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-extended/byacc/byacc.inc
meta/recipes-extended/byacc/byacc/byacc-open.patch [new file with mode: 0644]