mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
* switch to official Yubico release tarball instead of GitHub tarball (upstream changed packaging between 1.16.0 and 1.17.0) * split legacy compatibility patches into focused files: - patch-compat-pre1012.diff: fix kIOHIDManagerOptionNone on < 10.12 - patch-nosigpipe.diff: guard F_SETNOSIGPIPE on 10.5–10.6 - patch-fallthrough.diff: fix FALLTHROUGH attribute on < 10.10 - patch-bzero.diff: declare bzero hidden by _POSIX_C_SOURCE on < 10.9 - patch-cmake-no-fallthrough.diff: drop -Wimplicit-fallthrough on 10.5–10.6 Closes: https://trac.macports.org/ticket/64833 Closes: https://trac.macports.org/ticket/68333
12 lines
350 B
Diff
12 lines
350 B
Diff
--- openbsd-compat/explicit_bzero.c.orig
|
|
+++ openbsd-compat/explicit_bzero.c
|
|
@@ -10,6 +10,8 @@
|
|
#if !defined(HAVE_EXPLICIT_BZERO) && !defined(_WIN32)
|
|
|
|
#include <string.h>
|
|
+/* declare bzero explicitly: hidden by _POSIX_C_SOURCE on older SDKs */
|
|
+extern void bzero(void *, size_t);
|
|
|
|
/*
|
|
* explicit_bzero - don't let the compiler optimize away bzero
|