In OS X 10.9 Mavericks, Apple has marked all of the krb5 routines
as deprecated (in favor of the GSS framework). We must disable
these warnings in order to allow the buildslave to have a successful
build.
Luckily, Apple has left in rope for us to programmatically disable
the deprecated attribute with a preprocessor macro. Defining this
macro should be safe everywhere, so do so unconditionally.
Change-Id: Iedc920001fdc5731254336424b0ab7b27274555c
Reviewed-on: http://gerrit.openafs.org/10699
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
#include <afs/ktc.h>
#include <afs/token.h>
+#define KERBEROS_APPLE_DEPRECATED(x)
#include <krb5.h>
#ifdef HAVE_COM_ERR_H
# include <com_err.h>
#include <roken.h>
+#define KERBEROS_APPLE_DEPRECATED(x)
#include <krb5.h>
#ifndef HAVE_KERBEROSV_HEIM_ERR_H
#include <afs/cmd.h>
#include <afs/ptuser.h>
+#define KERBEROS_APPLE_DEPRECATED(x)
#include <krb5.h>
#ifdef HAVE_KRB5_CREDS_KEYBLOCK
#include <roken.h>
+#define KERBEROS_APPLE_DEPRECATED(x)
#include "aklog.h"
#include <krb5.h>
#include <roken.h>
+#define KERBEROS_APPLE_DEPRECATED(x)
#include "aklog.h"
#include <krb5.h>
#include "skipwrap.h"
#endif
#include <rx/rx.h>
#ifdef HAVE_KERBEROS
+# define KERBEROS_APPLE_DEPRECATED(x)
# include <krb5.h>
#endif
#include "afscp.h"
#include <rx/rx_null.h>
#include <rx/rxkad.h>
#ifdef HAVE_KERBEROS
+# define KERBEROS_APPLE_DEPRECATED(x)
# include <krb5.h>
#endif
#include "afscp.h"