+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
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 */
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 */
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 */