Use universal procedure pointers (UPP), which are required on the Mac
authorTheodore Tso <tytso@mit.edu>
Wed, 27 Mar 1996 23:48:41 +0000 (23:48 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 27 Mar 1996 23:48:41 +0000 (23:48 +0000)
Power PC.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7722 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/os/ChangeLog
src/lib/krb5/os/macsock.c

index b8fa4c2fe9464cbc848990ae66089606964c323f..46f4f013e28a1a2dfed9577e00d1b6182695452a 100644 (file)
@@ -1,3 +1,9 @@
+Wed Mar 27 18:31:44 1996  Theodore Y. Ts'o  <tytso@dcl>
+
+       * macsock.c (gethostbyname, gethostbyaddr): Use universal
+               procedure pointers (UPP), which are required on the Mac
+               Power PC.
+
 Mon Mar 18 21:49:39 1996  Ezra Peisach  <epeisach@kangaroo.mit.edu>
 
        * configure.in: Add KRB5_RUN_FLAGS
index 523d4e218d292bdee083c4873c6e689704d0872d..37b3e3c33406225eea477c41dc30addc633f2ada 100644 (file)
@@ -68,6 +68,9 @@ Cygnus Support (email info@cygnus.com).",
    for Kerberos, which is all that we care about right now.  */
 static struct timeval last_timeout;
 
+/* IH 04.03.96: Need UPP for PPC port */
+static ResultUPP gDNRresultupp = NULL;
+
 
 /* Forward declarations of static functions */
 
@@ -555,7 +558,11 @@ gethostbyname (char *hostname)
                
        if (err = OpenResolver(NULL))
                return(0);      // make sure resolver is open
-       err = StrToAddr(hostname, &host, DNRresultproc, &done);
+       
+       //  IH 04.03.96: Need UPP when running on PPC
+       if (gDNRresultupp == NULL)
+               gDNRresultupp = NewResultProc(DNRresultproc);
+       err = StrToAddr(hostname, &host, gDNRresultupp, &done);
        
        if (err == cacheFault) {
                while(!done) ;                  /* LOOP UNTIL CALLBACK IS RUN */
@@ -608,7 +615,10 @@ gethostbyaddr (char *addr, int len, int type)
                
        if (err = OpenResolver(NULL))
                return 0;       // make sure resolver is open
-       err = AddrToName(macaddr, &host, DNRresultproc, &done);
+       //  IH 04.03.96: Need UPP when running on PPC
+       if (gDNRresultupp == NULL)
+               gDNRresultupp = NewResultProc(DNRresultproc);
+       err = AddrToName(macaddr, &host, gDNRresultupp, &done);
        
        if (err == cacheFault) {
                while(!done) ;                  /* LOOP UNTIL CALLBACK IS RUN */