aboutsummaryrefslogtreecommitdiff
path: root/kconfig
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2020-04-02 10:42:42 -0700
committerRob Landley <rob@landley.net>2020-04-02 21:10:34 -0500
commit5332688a2a6ef72df2b7514962e27e66534a3e48 (patch)
treedb682080556453caf923faa25991c5b13e2c5b7b /kconfig
parente05d620a79575bc96155180e1efccd171452b82f (diff)
downloadtoybox-5332688a2a6ef72df2b7514962e27e66534a3e48.tar.gz
Fix macOS build.
I'd put the rtc_wkalarm struct in the globals to get it zeroed for free, but since there's no such type on macOS, that breaks the build. Rather than define a bogus struct in portability.h, I've gone for making it an explicitly-zeroed local. (And I've sorted the locals largest-first.) Note that the use of struct rtc_time as if it was the same as struct tm in this code follows the existing code in hwclock, but I worry that we're going to have trouble with that because of the extra tm_gmtoff and tm_zone fields in struct tm. But that's a worry for another day... This patch also removes the CONFIG_CP_PRESERVE from the macos_miniconfig, since that option was removed a while back.
Diffstat (limited to 'kconfig')
-rw-r--r--kconfig/macos_miniconfig1
1 files changed, 0 insertions, 1 deletions
diff --git a/kconfig/macos_miniconfig b/kconfig/macos_miniconfig
index b9bf6a3a..71663137 100644
--- a/kconfig/macos_miniconfig
+++ b/kconfig/macos_miniconfig
@@ -11,7 +11,6 @@ CONFIG_CRC32=y
CONFIG_CMP=y
CONFIG_COMM=y
CONFIG_CP=y
-CONFIG_CP_PRESERVE=y
CONFIG_CPIO=y
CONFIG_CUT=y
CONFIG_DATE=y