|
From: | Ludovic Courtès |
Subject: | bug#45716: Bug in ‘network-interface-names’ when building guix for aarch64 on x86_64. |
Date: | Mon, 11 Jan 2021 14:30:08 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Hi Danny, Danny Milosavljevic <dannym@scratchpost.org> skribis: >>(define ifreq-struct-size >> ;; 'struct ifreq' begins with an array of IF_NAMESIZE bytes containing the >> ;; interface name (nul-terminated), followed by a bunch of stuff. This is >> ;; its size in bytes. >> (if (= 8 (sizeof '*)) >> 40 >> 32)) > > I think that should rather be (sizeof* '*) instead of (sizeof '*). Ludo? As you found out, it makes no difference. What changes is that ‘sizeof*’ is a compile-time computation (but it honors cross-compilation targets) whereas ‘sizeof’ is a call made at run time. Ludo’.
[Prev in Thread] | Current Thread | [Next in Thread] |