From: Gary Lockyer Date: Thu, 21 Sep 2017 04:19:57 +0000 (+1200) Subject: Make HEIMDAL_WARN_UNUSED_RESULT_ATTRIBUTE available in krb5.h X-Git-Tag: talloc-2.3.2~911 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cb721715b9d7423388ce015c08ef425c6b67a49d;p=thirdparty%2Fsamba.git Make HEIMDAL_WARN_UNUSED_RESULT_ATTRIBUTE available in krb5.h Signed-off-by: Gary Lockyer Reviewed-by: Douglas Bagnall --- diff --git a/source4/heimdal_build/include/krb5-types.h b/source4/heimdal_build/include/krb5-types.h index b88194cadf9..7e9972b8a6a 100644 --- a/source4/heimdal_build/include/krb5-types.h +++ b/source4/heimdal_build/include/krb5-types.h @@ -6,6 +6,7 @@ #include "replace.h" #include "system/network.h" +#include "lib/util/attr.h" #if defined USING_SYSTEM_KRB5 && defined HEIMDAL_KRB5_TYPES_PATH #include HEIMDAL_KRB5_TYPES_PATH @@ -15,4 +16,6 @@ typedef int krb5_socket_t; typedef ssize_t krb5_ssize_t; #endif +#define HEIMDAL_WARN_UNUSED_RESULT_ATTRIBUTE _WARN_UNUSED_RESULT_ + #endif /* __samb_krb5_types_h__ */