pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/libnbcompat/files #if 0 out the __weak_alias ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/9c2333cdeeea
branches: trunk
changeset: 470866:9c2333cdeeea
user: grant <grant%pkgsrc.org@localhost>
date: Fri Mar 12 15:21:13 2004 +0000
description:
#if 0 out the __weak_alias stuff, which isn't needed here. should fix
build on OpenBSD ELF platforms.
diffstat:
pkgtools/libnbcompat/files/__fts13.c | 6 ++++--
pkgtools/libnbcompat/files/getopt_long.c | 6 ++++--
pkgtools/libnbcompat/files/namespace.h | 4 +++-
pkgtools/libnbcompat/files/pwcache.c | 6 ++++--
pkgtools/libnbcompat/files/setmode.c | 6 ++++--
pkgtools/libnbcompat/files/vis.c | 6 ++++--
6 files changed, 23 insertions(+), 11 deletions(-)
diffs (191 lines):
diff -r 8b2381c0f6d5 -r 9c2333cdeeea pkgtools/libnbcompat/files/__fts13.c
--- a/pkgtools/libnbcompat/files/__fts13.c Fri Mar 12 14:46:08 2004 +0000
+++ b/pkgtools/libnbcompat/files/__fts13.c Fri Mar 12 15:21:13 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: __fts13.c,v 1.4 2003/09/03 13:11:13 jlam Exp $ */
+/* $NetBSD: __fts13.c,v 1.5 2004/03/12 15:21:13 grant Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94";
#else
-__RCSID("$NetBSD: __fts13.c,v 1.4 2003/09/03 13:11:13 jlam Exp $");
+__RCSID("$NetBSD: __fts13.c,v 1.5 2004/03/12 15:21:13 grant Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -88,6 +88,7 @@
#define HAVE_STRUCT_DIRENT_D_NAMLEN 1
#endif
+#if 0
#ifdef __weak_alias
#ifdef __LIBC12_SOURCE__
__weak_alias(fts_children,_fts_children)
@@ -97,6 +98,7 @@
__weak_alias(fts_set,_fts_set)
#endif /* __LIBC12_SOURCE__ */
#endif /* __weak_alias */
+#endif
#ifdef __LIBC12_SOURCE__
#define STAT stat12
diff -r 8b2381c0f6d5 -r 9c2333cdeeea pkgtools/libnbcompat/files/getopt_long.c
--- a/pkgtools/libnbcompat/files/getopt_long.c Fri Mar 12 14:46:08 2004 +0000
+++ b/pkgtools/libnbcompat/files/getopt_long.c Fri Mar 12 15:21:13 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getopt_long.c,v 1.5 2003/09/06 04:28:16 grant Exp $ */
+/* $NetBSD: getopt_long.c,v 1.6 2004/03/12 15:21:13 grant Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -47,7 +47,7 @@
#endif
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: getopt_long.c,v 1.5 2003/09/06 04:28:16 grant Exp $");
+__RCSID("$NetBSD: getopt_long.c,v 1.6 2004/03/12 15:21:13 grant Exp $");
#endif /* LIBC_SCCS and not lint */
/* #include "namespace.h" */
@@ -74,10 +74,12 @@
#ifndef __ELF__
#define _getopt getopt
#else
+#if 0
#ifdef __weak_alias
__weak_alias(getopt,_getopt)
#endif
#endif
+#endif
int opterr = 1; /* if error message should be printed */
int optind = 1; /* index into parent argv vector */
int optopt = '?'; /* character checked for validity */
diff -r 8b2381c0f6d5 -r 9c2333cdeeea pkgtools/libnbcompat/files/namespace.h
--- a/pkgtools/libnbcompat/files/namespace.h Fri Mar 12 14:46:08 2004 +0000
+++ b/pkgtools/libnbcompat/files/namespace.h Fri Mar 12 15:21:13 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: namespace.h,v 1.3 2003/09/03 13:11:14 jlam Exp $ */
+/* $NetBSD: namespace.h,v 1.4 2004/03/12 15:21:13 grant Exp $ */
/*-
* Copyright (c) 1997-2002 The NetBSD Foundation, Inc.
@@ -42,6 +42,7 @@
#include <sys/cdefs.h>
#endif
+#if 0
#define brk _brk
#define catclose _catclose
#define catgets _catgets
@@ -622,5 +623,6 @@
#define dladdr __dladdr
#define fmtcheck __fmtcheck
#endif /* __weak_alias */
+#endif
#endif /* _NAMESPACE_H_ */
diff -r 8b2381c0f6d5 -r 9c2333cdeeea pkgtools/libnbcompat/files/pwcache.c
--- a/pkgtools/libnbcompat/files/pwcache.c Fri Mar 12 14:46:08 2004 +0000
+++ b/pkgtools/libnbcompat/files/pwcache.c Fri Mar 12 15:21:13 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pwcache.c,v 1.4 2003/09/03 13:11:14 jlam Exp $ */
+/* $NetBSD: pwcache.c,v 1.5 2004/03/12 15:21:13 grant Exp $ */
/*-
* Copyright (c) 1992 Keith Muller.
@@ -78,7 +78,7 @@
#if 0
static char sccsid[] = "@(#)cache.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: pwcache.c,v 1.4 2003/09/03 13:11:14 jlam Exp $");
+__RCSID("$NetBSD: pwcache.c,v 1.5 2004/03/12 15:21:13 grant Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -93,6 +93,7 @@
#include <string.h>
#include <unistd.h>
+#if 0
#ifndef __ELF__
#define _user_from_uid user_from_uid
#define _group_from_gid group_from_gid
@@ -106,6 +107,7 @@
__weak_alias(pwcache_groupdb,_pwcache_groupdb)
#endif
#endif
+#endif
#include "pwcache.h"
diff -r 8b2381c0f6d5 -r 9c2333cdeeea pkgtools/libnbcompat/files/setmode.c
--- a/pkgtools/libnbcompat/files/setmode.c Fri Mar 12 14:46:08 2004 +0000
+++ b/pkgtools/libnbcompat/files/setmode.c Fri Mar 12 15:21:13 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: setmode.c,v 1.6 2003/09/05 22:19:30 jlam Exp $ */
+/* $NetBSD: setmode.c,v 1.7 2004/03/12 15:21:13 grant Exp $ */
/*
* Copyright (c) 1989, 1993, 1994
@@ -44,7 +44,7 @@
#if 0
static char sccsid[] = "@(#)setmode.c 8.2 (Berkeley) 3/25/94";
#else
-__RCSID("$NetBSD: setmode.c,v 1.6 2003/09/05 22:19:30 jlam Exp $");
+__RCSID("$NetBSD: setmode.c,v 1.7 2004/03/12 15:21:13 grant Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -71,6 +71,7 @@
#define _DIAGASSERT(cond) assert(cond)
#endif
+#if 0
#ifndef __ELF__
#define _getmode getmode
#define _setmode setmode
@@ -80,6 +81,7 @@
__weak_alias(setmode,_setmode)
#endif
#endif
+#endif
#define SET_LEN 6 /* initial # of bitcmd struct to malloc */
#define SET_LEN_INCR 4 /* # of bitcmd structs to add as needed */
diff -r 8b2381c0f6d5 -r 9c2333cdeeea pkgtools/libnbcompat/files/vis.c
--- a/pkgtools/libnbcompat/files/vis.c Fri Mar 12 14:46:08 2004 +0000
+++ b/pkgtools/libnbcompat/files/vis.c Fri Mar 12 15:21:13 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vis.c,v 1.3 2003/09/03 13:11:16 jlam Exp $ */
+/* $NetBSD: vis.c,v 1.4 2004/03/12 15:21:13 grant Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -45,7 +45,7 @@
#endif
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: vis.c,v 1.3 2003/09/03 13:11:16 jlam Exp $");
+__RCSID("$NetBSD: vis.c,v 1.4 2004/03/12 15:21:13 grant Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -58,6 +58,7 @@
#include "nbcompat/vis.h"
#include <stdlib.h>
+#if 0
#ifndef __ELF__
#define _strsvis strsvis
#define _strsvisx strsvisx
@@ -75,6 +76,7 @@
__weak_alias(vis,_vis)
#endif
#endif
+#endif
#include <ctype.h>
#include <limits.h>
Home |
Main Index |
Thread Index |
Old Index