summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2003-07-13 02:36:17 +0000
committergrant <grant@pkgsrc.org>2003-07-13 02:36:17 +0000
commit394bcaacf97e884f1346270f7bc672ba184b9c2e (patch)
treea8815e557b293855253f02bbdec16e92902b96a7 /pkgtools
parent84a08de65c2298242453e4cbc0c378be92ab9d10 (diff)
downloadpkgsrc-394bcaacf97e884f1346270f7bc672ba184b9c2e.tar.gz
setenv.c - include strings.h for bcopy prototype
add prototypes for getmode, lchmod, lchown eliminates implicit declaration warnings building pax and mtree with Forte compiler on Solaris.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/libnbcompat/files/extern.h7
-rw-r--r--pkgtools/libnbcompat/files/nbcompat.h12
-rw-r--r--pkgtools/libnbcompat/files/setenv.c10
3 files changed, 26 insertions, 3 deletions
diff --git a/pkgtools/libnbcompat/files/extern.h b/pkgtools/libnbcompat/files/extern.h
index ce058e97939..f652bf697e6 100644
--- a/pkgtools/libnbcompat/files/extern.h
+++ b/pkgtools/libnbcompat/files/extern.h
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.2 2003/05/22 18:10:43 jschauma Exp $ */
+/* $NetBSD: extern.h,v 1.3 2003/07/13 02:36:17 grant Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -77,11 +77,14 @@ char *user_from_uid(uid_t, int);
char *group_from_gid(gid_t, int);
#endif
+#ifndef HAVE_GETMODE
+mode_t getmode(const void *, mode_t);
+#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 *);
diff --git a/pkgtools/libnbcompat/files/nbcompat.h b/pkgtools/libnbcompat/files/nbcompat.h
index 4657e528cbd..d90e1d4f8f4 100644
--- a/pkgtools/libnbcompat/files/nbcompat.h
+++ b/pkgtools/libnbcompat/files/nbcompat.h
@@ -285,6 +285,14 @@ int inet_pton(int, const char *, void *);
int mkstemp(char *);
#endif
+#ifndef HAVE_LCHMOD
+int lchmod(const char *, mode_t);
+#endif
+
+#ifndef HAVE_LCHOWN
+int lchown(const char *, uid_t, gid_t);
+#endif
+
#ifndef HAVE_SETPROGNAME
const char *getprogname(void);
void setprogname(const char *);
@@ -302,6 +310,10 @@ char *strdup(const char *);
char *strerror(int);
#endif
+#ifndef HAVE_STRMODE
+void strmode(mode_t, char *);
+#endif
+
#if !defined(HAVE_STRPTIME) || !defined(HAVE_STRPTIME_D)
char *strptime(const char *, const char *, struct tm *);
#endif
diff --git a/pkgtools/libnbcompat/files/setenv.c b/pkgtools/libnbcompat/files/setenv.c
index f652041d6b2..ab7a6b41543 100644
--- a/pkgtools/libnbcompat/files/setenv.c
+++ b/pkgtools/libnbcompat/files/setenv.c
@@ -33,9 +33,17 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)setenv.c 5.6 (Berkeley) 6/4/91";*/
-static char *rcsid = "$Id: setenv.c,v 1.2 2003/07/12 19:43:53 grant Exp $";
+static char *rcsid = "$Id: setenv.c,v 1.3 2003/07/13 02:36:18 grant Exp $";
#endif /* LIBC_SCCS and not lint */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
#include <stddef.h>
#include <stdlib.h>
#include <string.h>