]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
talloc_setmemlimit() is now deprecated on OSX.
authorAlan T. DeKok <aland@freeradius.org>
Thu, 11 Feb 2021 15:56:35 +0000 (10:56 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 11 Feb 2021 15:58:33 +0000 (10:58 -0500)
homebrew installs a newer version of talloc, which has marked
talloc_setmemlimit() as deprecated.

This change is a temporary stop-gap until we get rid of
talloc_setmemlimit() everywhere.

src/lib/util/talloc.h

index d549eb5baf26d46614404a3741e1c594c3a80c0a..fdc6566eb95e6a4b70f594154bab6dc558014728 100644 (file)
@@ -34,6 +34,8 @@ extern "C" {
 #include <ctype.h>
 #include <stdbool.h>
 #include <stdint.h>
+
+USES_APPLE_DEPRECATED_API
 #include <talloc.h>
 
 /** Iterate over a talloced array of elements