Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/include * __sparc64__ -> __sparc__ && _LP64,



details:   https://anonhg.NetBSD.org/src/rev/51541ea016d1
branches:  trunk
changeset: 566414:51541ea016d1
user:      kleink <kleink%NetBSD.org@localhost>
date:      Sat May 08 18:55:23 2004 +0000

description:
* __sparc64__ -> __sparc__ && _LP64,
* add a comment on the purpose of __ai_pad0.
Both suggested by mrg.

diffstat:

 include/netdb.h |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (25 lines):

diff -r b305b14a0a09 -r 51541ea016d1 include/netdb.h
--- a/include/netdb.h   Sat May 08 18:52:15 2004 +0000
+++ b/include/netdb.h   Sat May 08 18:55:23 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netdb.h,v 1.37 2004/05/08 18:52:15 kleink Exp $        */
+/*     $NetBSD: netdb.h,v 1.38 2004/05/08 18:55:23 kleink Exp $        */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -178,12 +178,12 @@
        int     ai_family;      /* PF_xxx */
        int     ai_socktype;    /* SOCK_xxx */
        int     ai_protocol;    /* 0 or IPPROTO_xxx for IPv4 and IPv6 */
-#if defined(__sparc64__)
-       int     __ai_pad0;
+#if defined(__sparc__) && defined(_LP64)
+       int     __ai_pad0;      /* ABI compatibility */
 #endif
        socklen_t ai_addrlen;   /* length of ai_addr */
 #if defined(__alpha__) || (defined(__i386__) && defined(_LP64))
-       int     __ai_pad0;
+       int     __ai_pad0;      /* ABI compatbility */
 #endif
        char    *ai_canonname;  /* canonical name for hostname */
        struct sockaddr *ai_addr;       /* binary address */



Home | Main Index | Thread Index | Old Index