cifs-upcall: krb5.h inclusion quick fix
authorTorsten Kurbad <torsten@tk-webart.de>
Fri, 2 Apr 2010 01:47:25 +0000 (21:47 -0400)
committerJeff Layton <jlayton@redhat.com>
Fri, 2 Apr 2010 01:47:25 +0000 (21:47 -0400)
...eventually it might be better to make autoconf set -I/usr/include/krb5
or whatever and get rid of the #ifdef's here. It's a little tricky to
figure out the include dir however, so this will do for now.

Signed-off-by: Torsten Kurbad <torsten@tk-webart.de>
cifs.upcall.c

index 95ff521d4a87a4b6e203f96bb5c6bba8c96fffa3..2e5a87380df5bec4a27cd0eb6595f48a449252f5 100644 (file)
@@ -31,7 +31,11 @@ create dns_resolver * * /usr/local/sbin/cifs.upcall %k
 
 #include <string.h>
 #include <getopt.h>
+#ifdef HAVE_KRB5_KRB5_H
 #include <krb5/krb5.h>
+#elif defined(HAVE_KRB5_H)
+#include <krb5.h>
+#endif
 #include <syslog.h>
 #include <dirent.h>
 #include <sys/types.h>