summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorgrant <grant>2003-07-13 02:36:17 +0000
committergrant <grant>2003-07-13 02:36:17 +0000
commitc986919f6c72c76f15d4d1a423a82f3701a39679 (patch)
treea8815e557b293855253f02bbdec16e92902b96a7 /pkgtools
parente213bc89dd93a5edd6130c150c55ed65f1f985b1 (diff)
downloadpkgsrc-c986919f6c72c76f15d4d1a423a82f3701a39679.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>