summaryrefslogtreecommitdiffstats
path: root/package/python-backports-shutil-get-terminal-size/python-backports-shutil-get-terminal-size.mk
diff options
context:
space:
mode:
authorMauro Condarelli <mc5686@mclink.it>2017-04-21 12:33:08 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-10-22 15:56:20 +0200
commit4852f05907cd365825f37c283a415a77ba1fcba9 (patch)
treeec41112d7cc072744ff0f01cfb94449c84d741a9 /package/python-backports-shutil-get-terminal-size/python-backports-shutil-get-terminal-size.mk
parent862b76cfefc101943f09db2a73f5519f9a5bb2cb (diff)
downloadbuildroot-4852f05907cd365825f37c283a415a77ba1fcba9.tar.gz
buildroot-4852f05907cd365825f37c283a415a77ba1fcba9.zip
libffi: add patch to fix MIPS support
Building Python 3.x on MIPS with musl fails because the libffi code uses a "#ifdef linux" test to decide if we're building on Linux or not. When building with -std=c99, "linux" is not defined, so instead of including <asm/sgidefs.h>, libffi's code tries to include <sgidefs.h>, which doesn't exist on musl. The right fix is to use __linux__, which is POSIX compliant, and therefore defined even when -std=c99 is used. Note that glibc and uClibc were not affected because they do provide a <sgidefs.h> header in addition to the <asm/sgidefs.h> one. Signed-off-by: Mauro Condarelli <mc5686@mclink.it> [Thomas: reformat patch with Git, add a better commit log and description.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/python-backports-shutil-get-terminal-size/python-backports-shutil-get-terminal-size.mk')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud