summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjschauma <jschauma>2003-05-22 18:10:43 +0000
committerjschauma <jschauma>2003-05-22 18:10:43 +0000
commitc4c0f23683c22b153b10799f81d9a6da4e29b354 (patch)
tree516c86d619be985b825d99874f8c3369a2238d76 /pkgtools
parent48405f7d0a82e3079ca491a83e2551b72999bc7e (diff)
downloadpkgsrc-c4c0f23683c22b153b10799f81d9a6da4e29b354.tar.gz
Add some more protoypes in extern.h and check for setmode to shut up some
warnings.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/libnbcompat/files/config.h.in5
-rwxr-xr-xpkgtools/libnbcompat/files/configure2
-rw-r--r--pkgtools/libnbcompat/files/extern.h19
3 files changed, 23 insertions, 3 deletions
diff --git a/pkgtools/libnbcompat/files/config.h.in b/pkgtools/libnbcompat/files/config.h.in
index 6e304cc0753..4a055556a5e 100644
--- a/pkgtools/libnbcompat/files/config.h.in
+++ b/pkgtools/libnbcompat/files/config.h.in
@@ -1,5 +1,5 @@
/* config.h.in. Generated from configure.ac by autoheader. */
-/* $Id: config.h.in,v 1.2 2003/03/31 05:34:35 grant Exp $ */
+/* $Id: config.h.in,v 1.3 2003/05/22 18:10:43 jschauma Exp $ */
/* Define if *printf() uses %qd to print `long long' (otherwise uses %lld) */
#undef HAVE_PRINTF_QD
@@ -190,6 +190,9 @@
/* Define to 1 if you have the `setlocale' function. */
#undef HAVE_SETLOCALE
+/* Define to 1 if you have the `setmode' function. */
+#undef HAVE_SETMODE
+
/* Define to 1 if you have the `setpassent' function. */
#undef HAVE_SETPASSENT
diff --git a/pkgtools/libnbcompat/files/configure b/pkgtools/libnbcompat/files/configure
index 5b023827f29..0e01c4bbdfd 100755
--- a/pkgtools/libnbcompat/files/configure
+++ b/pkgtools/libnbcompat/files/configure
@@ -5733,7 +5733,7 @@ done
for ac_func in err fgetln fseeko getenv glob inet_ntop \
inet_pton lchflags lchmod lchown lutimes mkstemp setenv \
- setprogname sl_init snprintf strdup strerror strlcat \
+ setmode setprogname sl_init snprintf strdup strerror strlcat \
strlcpy strptime strsep strtoll timegm usleep
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
diff --git a/pkgtools/libnbcompat/files/extern.h b/pkgtools/libnbcompat/files/extern.h
index 351dbf37f6a..ce058e97939 100644
--- a/pkgtools/libnbcompat/files/extern.h
+++ b/pkgtools/libnbcompat/files/extern.h
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.1.1.1 2003/03/31 05:02:43 grant Exp $ */
+/* $NetBSD: extern.h,v 1.2 2003/05/22 18:10:43 jschauma Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -65,6 +65,23 @@
#define MAXHOSTNAMELEN 256
#endif
+#ifndef HAVE_STRSEP
+char *strsep(char **, const char *);
+#endif
+
+#ifndef HAVE_USER_FROM_UID
+char *user_from_uid(uid_t, int);
+#endif
+
+#ifndef HAVE_GROUP_FROM_GID
+char *group_from_gid(gid_t, int);
+#endif
+
+#ifndef HAVE_SETMODE
+void *setmode(const char *);
+#endif
+
+
void addtag(slist_t *, char *);
int check_excludes(const char *, const char *);
int compare(NODE *, FTSENT *);