]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
HBSD: wrap function declaration in an ifdef to appease CI
authorShawn Webb <shawn.webb@hardenedbsd.org>
Sun, 9 Aug 2020 12:15:06 +0000 (08:15 -0400)
committerShawn Webb <shawn.webb@hardenedbsd.org>
Wed, 14 Oct 2020 16:40:34 +0000 (12:40 -0400)
The function I added only applies to FreeBSD. As such, if the function
declaration isn't ifdef'd out for other architectures, continuous
integration (CI) builds fail. Mitigate the failure by guarding the
function declaration with the proper preprocessor macro conditional.

Signed-off-by: Shawn Webb <shawn.webb@hardenedbsd.org>

libarchive/archive_read_disk_entry_from_file.c

index 8765381894b490c3fabfaef06097fdebb005348c..7395ee725feba2b30b0da96e900d0af212353a79 100644 (file)
@@ -103,8 +103,10 @@ __FBSDID("$FreeBSD");
 
 static int setup_mac_metadata(struct archive_read_disk *,
     struct archive_entry *, int *fd);
+#ifdef ARCHIVE_XATTR_FREEBSD
 static int setup_xattrs_namespace(struct archive_read_disk *,
     struct archive_entry *, int *, int);
+#endif
 static int setup_xattrs(struct archive_read_disk *,
     struct archive_entry *, int *fd);
 static int setup_sparse(struct archive_read_disk *,