grep: Always use locale.h
authorAlexandru DAMIAN <alexandru.damian@intel.com>
Tue, 12 Mar 2013 09:56:02 +0000 (09:56 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 20 Mar 2013 17:26:16 +0000 (17:26 +0000)
commit25643e1b55894148f00dc58e64d6b083f547ccf5
tree3a7fa2a3fe1209db5e4be072875c8a7427f548be
parent5b6dd280163fa1a05e4a0b0d2f89b1c9639b2052
grep: Always use locale.h

The changes in the grep 2.5 configuration always leave out
HAVE_LOCALE_H - it has been removed from other files, but
not from everywhere.

This leads to a crash in certain configurations where the
size of int is not the size of pointer; this happens because
setlocale() is used while being undeclared.

[YOCTO #3959]

(From OE-Core rev: 4ca3a19c6fb93a6e85017f7ae465b5d2eba9463e)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/grep/grep-2.5.1a/fix64-int-to-pointer.patch [new file with mode: 0644]
meta/recipes-extended/grep/grep_2.5.1a.bb