Source-Changes-HG archive

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

[src/trunk]: src/distrib/utils/libhack Deal with name space issues after libc...



details:   https://anonhg.NetBSD.org/src/rev/1ddf5bd8fb83
branches:  trunk
changeset: 480514:1ddf5bd8fb83
user:      pk <pk%NetBSD.org@localhost>
date:      Fri Jan 14 13:52:13 2000 +0000

description:
Deal with name space issues after libc/net updates.

diffstat:

 distrib/utils/libhack/gethost.c |  15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r 05856bf568e7 -r 1ddf5bd8fb83 distrib/utils/libhack/gethost.c
--- a/distrib/utils/libhack/gethost.c   Fri Jan 14 13:50:11 2000 +0000
+++ b/distrib/utils/libhack/gethost.c   Fri Jan 14 13:52:13 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gethost.c,v 1.4 1999/03/13 19:08:44 sommerfe Exp $     */
+/*     $NetBSD: gethost.c,v 1.5 2000/01/14 13:52:13 pk Exp $   */
 
 /*-
  * Copyright (c) 1985, 1988, 1993
@@ -58,6 +58,19 @@
  * and then gutted, leaving only /etc/hosts support.
  */
 
+#include <sys/cdefs.h>
+
+#if defined(__weak_alias)
+/* From namespace.h: */
+#define gethostbyaddr  _gethostbyaddr
+#define gethostbyname  _gethostbyname
+#define gethostname    _gethostname
+
+__weak_alias(gethostbyaddr,_gethostbyaddr);
+__weak_alias(gethostbyname,_gethostbyname);
+__weak_alias(gethostbyname2,gethostbyname);
+#endif
+
 #include <sys/param.h>
 #include <sys/socket.h>
 #include <netinet/in.h>



Home | Main Index | Thread Index | Old Index