From: Bdale Garbee Date: Mon, 11 Aug 2008 21:22:06 +0000 (-0300) Subject: better fix for implicit declaration X-Git-Tag: debian/20090728-1~14 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=5f9e79a58492ebc9118a1ae9f20becd2b7f20bc3;p=debian%2Fpax better fix for implicit declaration --- diff --git a/ar_subs.c b/ar_subs.c index b7298fa..382462c 100644 --- 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 2647797..c117f79 100644 --- 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);