better fix for implicit declaration
authorBdale Garbee <bdale@gag.com>
Mon, 11 Aug 2008 21:22:06 +0000 (18:22 -0300)
committerBdale Garbee <bdale@gag.com>
Mon, 11 Aug 2008 21:22:06 +0000 (18:22 -0300)
ar_subs.c
pax.h

index b7298fa6b1867e9eb47aa9f9bcdbdbcc12d6bdbe..382462cd6540f148abe3258affcc8650a0426d8c 100644 (file)
--- a/ar_subs.c
+++ b/ar_subs.c
@@ -62,8 +62,6 @@ static int get_arc(void);
 static int next_head(ARCHD *);
 extern sigset_t s_mask;
 
-extern size_t strlcpy(char *, const char *, size_t);
-
 /*
  * Routines which control the overall operation modes of pax as specified by
  * the user: list, append, read ...
diff --git a/pax.h b/pax.h
index 26477976e4feb62ee7e8ea0e1f98d504fc32e091..c117f79708dd48e86275f367b65af2c7922138a7 100644 (file)
--- a/pax.h
+++ b/pax.h
@@ -242,3 +242,6 @@ typedef struct oplist {
 #define OCT            8
 #define _PAX_          1
 #define _TFILE_BASE    "paxXXXXXXXXXX"
+
+/* hack since we're pulling strlcpy in from OpenBSD library to this dir */
+extern size_t strlcpy(char *, const char *, size_t);