Change #ifdef sparc to #ifdef sun for more portability.
authorTheodore Tso <tytso@mit.edu>
Wed, 23 Oct 1996 00:18:35 +0000 (00:18 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 23 Oct 1996 00:18:35 +0000 (00:18 +0000)
[PR#123]

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

src/lib/rpc/ChangeLog
src/lib/rpc/clnt_udp.c
src/lib/rpc/pmap_rmt.c

index 68c0f227fd4769234a4b87a544433ee13b5f7fca..b3b643a3ad0e294a03ef878a396b431df40bc9ed 100644 (file)
@@ -1,3 +1,9 @@
+Wed Oct 23 00:08:27 1996  Theodore Y. Ts'o  <tytso@mit.edu>
+
+       * pmap_rmt.c:
+       * clnt_udp.c: Change #ifdef sparc to #ifdef sun for more portability.
+               [fixes PR#123]
+
 Mon Oct 21 21:22:42 1996  Tom Yu  <tlyu@mit.edu>
 
        * Makefile.in, configure.in: Fixes to work with new directory
index 000b9683df962edba9e1417582642b7240923a0e..6a5cf5f11418505a5d3db4d4b81575cbe0fa7161 100644 (file)
@@ -41,7 +41,7 @@ static char sccsid[] = "@(#)clnt_udp.c 1.39 87/08/11 Copyr 1984 Sun Micro";
 #include <rpc/rpc.h>
 #include <sys/socket.h>
 #include <sys/ioctl.h>
-#if defined(sparc)
+#if defined(sun)
 #include <sys/filio.h>
 #endif
 #include <netdb.h>
index 9dd922c8f8716cf4e6ec5505c60e39b96c535f80..b740f5083774d5eaa60169c2aadcaef02be502cd 100644 (file)
@@ -44,7 +44,7 @@ static char sccsid[] = "@(#)pmap_rmt.c 1.21 87/08/27 Copyr 1984 Sun Micro";
 #include <rpc/pmap_clnt.h>
 #include <rpc/pmap_rmt.h>
 #include <sys/socket.h>
-#ifdef sparc
+#ifdef sun
 #include <sys/sockio.h>
 #endif
 #include <stdio.h>
@@ -198,7 +198,7 @@ getbroadcastnets(addrs, sock, buf)
                                addrs[i++].s_addr = INADDR_ANY;
 #if 0 /* this is uuuuugly */
                                addrs[i++] = inet_makeaddr(inet_netof
-#if defined(hpux) || (defined(sparc) && defined(__svr4__)) || defined(linux) || (defined(__osf__) && defined(__alpha__))
+#if defined(hpux) || (defined(sun) && defined(__svr4__)) || defined(linux) || (defined(__osf__) && defined(__alpha__))
                                                           (sin->sin_addr),
 #else /* hpux or solaris */
                                                           (sin->sin_addr.s_addr),