Commit 00070d8
committed
Fix for kernel 4.2: don't use 64 bits syscalls/types
The currently Linux kernel version supported by qemu is based on
upstream kernel 4.2 [1].
However, the 64 bits syscalls from musl are not implemented by Hexagon
kernel 4.2. And the time_t type is now 64 bits for all archs on musl
(not only the 64 bits archs), so we also need to force our own type size
here for kernel 4.2.
Furthermore, we need to refrain from using faccessat2, as this was only
added at kernel 5.8.
[1]: https://git.kernel.org/pub/scm/linux/kernel/git/bcain/linux.git/log/?h=bcain/boot_qemu
Signed-off-by: Matheus Tavares Bernardino <matheus.bernardino@oss.qualcomm.com>1 parent 41340e5 commit 00070d8
2 files changed
+3
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | 279 | | |
300 | 280 | | |
301 | 281 | | |
| |||
310 | 290 | | |
311 | 291 | | |
312 | 292 | | |
313 | | - | |
314 | 293 | | |
315 | 294 | | |
| 295 | + | |
316 | 296 | | |
317 | 297 | | |
318 | 298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments