From 5f9e79a58492ebc9118a1ae9f20becd2b7f20bc3 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Mon, 11 Aug 2008 18:22:06 -0300 Subject: [PATCH] better fix for implicit declaration --- ar_subs.c | 2 -- pax.h | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) 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); -- 2.30.2