From 2ddec075985446e80fb12eb8a7d48b2088067b69 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Mon, 25 Feb 2013 23:13:47 +0000 Subject: [PATCH] Add krb5_enomem for config parser & kernel crypto The imported code form Heimdal that forms our config file parser and kernel rfc3961 library now makes use of krb5_enomem. Provide an implementation so we build again ... Change-Id: Ie7162d73aa97e6f7594c0e7c68ed6939f57ae884 Reviewed-on: http://gerrit.openafs.org/9265 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/cmd/krb5_locl.h | 10 ++++++---- src/crypto/rfc3961/krb5_locl.h | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/cmd/krb5_locl.h b/src/cmd/krb5_locl.h index 0f89acb18..aedbd6306 100644 --- a/src/cmd/krb5_locl.h +++ b/src/cmd/krb5_locl.h @@ -53,14 +53,16 @@ static void krb5_set_error_message(krb5_context context, krb5_error_code ret, return; } +static krb5_error_code +krb5_enomem(krb5_context context) +{ + return ENOMEM; +} + #ifdef EXPAND_PATH_HEADER #include -static krb5_error_code krb5_enomem(krb5_context context) { - return ENOMEM; -} - static int _krb5_expand_path_tokens(krb5_context, const char *, char**); int diff --git a/src/crypto/rfc3961/krb5_locl.h b/src/crypto/rfc3961/krb5_locl.h index 9684f5e97..4982e5f9f 100644 --- a/src/crypto/rfc3961/krb5_locl.h +++ b/src/crypto/rfc3961/krb5_locl.h @@ -143,6 +143,7 @@ void krb5_set_error_message(krb5_context, krb5_error_code, const char *, ...); krb5_error_code krb5_abortx(krb5_context, const char *, ...); #define krb5_clear_error_message(ctx) +#define krb5_enomem(ctx) ENOMEM /* Local prototypes. These are functions that we aren't admitting to in the * public API */ -- 2.39.5