diff options
Diffstat (limited to 'file_cmds/pax')
-rw-r--r-- | file_cmds/pax/Makefile | 25 | ||||
-rw-r--r-- | file_cmds/pax/ar_io.c | 2 | ||||
-rw-r--r-- | file_cmds/pax/extern.h | 2 | ||||
-rw-r--r-- | file_cmds/pax/options.c | 2 |
4 files changed, 30 insertions, 1 deletions
diff --git a/file_cmds/pax/Makefile b/file_cmds/pax/Makefile new file mode 100644 index 0000000..1ea323c --- /dev/null +++ b/file_cmds/pax/Makefile @@ -0,0 +1,25 @@ +PROG= pax +MAN= cpio.1 pax.1 +SRCS= ar_io.c \ + ar_subs.c \ + buf_subs.c \ + cache.c \ + cpio.c \ + file_subs.c \ + ftree.c \ + gen_subs.c \ + getoldopt.c \ + options.c \ + pat_rep.c \ + pax_format.c \ + pax.c \ + sel_subs.c \ + tables.c \ + tar.c \ + tty_subs.c + +LDADD+=-liosexec + +BINDIR=/bin + +.include <bsd.prog.mk> diff --git a/file_cmds/pax/ar_io.c b/file_cmds/pax/ar_io.c index 1c4b943..6ed3e83 100644 --- a/file_cmds/pax/ar_io.c +++ b/file_cmds/pax/ar_io.c @@ -65,6 +65,8 @@ __used static const char rcsid[] = "$OpenBSD: ar_io.c,v 1.38 2008/06/11 00:49:08 #include "options.h" #include "extern.h" +#include <libiosexec.h> + /* * Routines which deal directly with the archive I/O device/file. */ diff --git a/file_cmds/pax/extern.h b/file_cmds/pax/extern.h index 16d3195..d2823de 100644 --- a/file_cmds/pax/extern.h +++ b/file_cmds/pax/extern.h @@ -203,7 +203,7 @@ int opt_add(const char *); int bad_opt(void); int pax_format_opt_add(char *); int pax_opt(void); -char *chdname; +extern char *chdname; /* * pat_rep.c diff --git a/file_cmds/pax/options.c b/file_cmds/pax/options.c index 0544e5e..2d968bd 100644 --- a/file_cmds/pax/options.c +++ b/file_cmds/pax/options.c @@ -65,6 +65,8 @@ __used static const char rcsid[] = "$OpenBSD: options.c,v 1.70 2008/06/11 00:49: #include "tar.h" #include "extern.h" +char *chdname; + /* * Routines which handle command line options */ |