[krbdev.mit.edu #2628] Patch to build krb5-1.3.4 under Cygwin

sigeti@lanl.gov via RT rt-comment at krbdev.mit.edu
Thu Jul 8 18:03:54 EDT 2004


Dear Kerberos Developers,

Apparently, the mail software I was using to submit my bug report
wrapped some long lines in the patch that I sent with the report.  I
believe that I have fixed the problem in this message.

Yours,
David


A patch file made from the distribution of krb5-1.3.4 (downloaded on 6
July 2004) follows.

diff -Naur original/krb5-1.3.4/src/include/k5-int.h local/krb5-1.3.4/src/include/k5-int.h
--- original/krb5-1.3.4/src/include/k5-int.h	2004-01-05 15:49:32.000000000 -0700
+++ local/krb5-1.3.4/src/include/k5-int.h	2004-07-07 13:31:07.621701800 -0600
@@ -1655,12 +1655,14 @@
   unsigned short port;
   char *host;
};
+#ifdef KRB5_DNS_LOOKUP
krb5_error_code
krb5int_make_srv_query_realm(const krb5_data *realm,
			     const char *service,
			     const char *protocol,
			     struct srv_dns_entry **answers);
void krb5int_free_srv_dns_data(struct srv_dns_entry *);
+#endif /* KRB5_DNS_LOOKUP */

#if defined(macintosh) && defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
#pragma import reset
diff -Naur original/krb5-1.3.4/src/lib/krb5/os/locate_kdc.c local/krb5-1.3.4/src/lib/krb5/os/locate_kdc.c
--- original/krb5-1.3.4/src/lib/krb5/os/locate_kdc.c	2004-01-05 19:30:15.000000000 -0700
+++ local/krb5-1.3.4/src/lib/krb5/os/locate_kdc.c	2004-07-07 13:39:02.103040100 -0600
@@ -502,6 +502,7 @@
}
#endif

+#ifdef KRB5_DNS_LOOKUP
static krb5_error_code
krb5_locate_srv_dns_1 (const krb5_data *realm,
		       const char *service,
@@ -561,6 +562,7 @@
   krb5int_free_srv_dns_data(head);
   return code;
}
+#endif /* KRB5_DNS_LOOKUP */

/*
* Wrapper function for the two backends
diff -Naur original/krb5-1.3.4/src/util/db2/hash/hash.c local/krb5-1.3.4/src/util/db2/hash/hash.c
--- original/krb5-1.3.4/src/util/db2/hash/hash.c	2001-07-09 06:06:36.000000000 -0600
+++ local/krb5-1.3.4/src/util/db2/hash/hash.c	2004-07-07 15:55:59.472323600 -0600
@@ -96,7 +96,7 @@
extern DB *
__kdb2_hash_open(file, flags, mode, info, dflags)
	const char *file;
-	int32_t flags, mode, dflags;
+	int flags, mode, dflags;
	const HASHINFO *info;	/* Special directives for create */
{
	struct stat statbuf;









More information about the krb5-bugs mailing list