diff options
author | Romain Naour <romain.naour@gmail.com> | 2018-06-22 23:09:49 +0200 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2018-06-23 12:52:01 +0200 |
commit | 8646a7fae998132cf468454be8b762211713d5ca (patch) | |
tree | 0e7e45f7782c522345f45a5e112e2a85f5a21323 /package/protobuf-c/0001-Add-std-to-some-types.patch | |
parent | dff052827e41b63f3bf287cf44f1185f2b6c139e (diff) | |
download | buildroot-8646a7fae998132cf468454be8b762211713d5ca.tar.gz buildroot-8646a7fae998132cf468454be8b762211713d5ca.zip |
package/gdb: fix gdbserver build for m68k
As for strace [1], when <sys/reg.h> is included after <linux/ptrace.h>,
the build fails on m68k with the following diagnostics:
In file included from ./../nat/linux-ptrace.h:28:0,
from linux-low.h:27,
from linux-m68k-low.c:20:
[...]/usr/include/sys/reg.h:26:3: error: expected identifier before numeric constant
PT_D1 = 0,
^
[...]usr/include/sys/reg.h:26:3: error: expected « } » before numeric constant
[...]usr/include/sys/reg.h:26:3: error: expected unqualified-id before numeric constant
In file included from linux-m68k-low.c:27:0:
[...]usr/include/sys/reg.h:99:1: error: expected declaration before « } » token
};
^
Fix this by moving <sys/reg.h> on top of "linux-low.h".
Fixes:
https://gitlab.com/free-electrons/toolchains-builder/-/jobs/72006385
[1] https://github.com/strace/strace/commit/6ebf6c4f9e5ebca123a5b5f24afe67cf0473cf92
Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/protobuf-c/0001-Add-std-to-some-types.patch')
0 files changed, 0 insertions, 0 deletions