[Toybox] [PATCH] strace: fix macOS build.

enh enh at google.com
Mon Sep 20 10:14:59 PDT 2021


Obviously we're never going to be able to build strace for macOS,
but right now the reference to the struct was breaking even a macOS
build with strace disabled! From poking at building for arm on the
Raspberry Pi over the weekend, changes like this will be needed
there too (because different architectures have different _names_
for this struct, not just different contents).

Tested on macOS (where it juts fixes the build) and on x86-64 (where
strace continues to function as before).
---
 lib/portability.h     |  2 --
 toys/pending/strace.c | 42 ++++++++++++++++++++++++------------------
 2 files changed, 24 insertions(+), 20 deletions(-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210920/7b03473e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-strace-fix-macOS-build.patch
Type: text/x-patch
Size: 3151 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210920/7b03473e/attachment-0002.bin>


More information about the Toybox mailing list