mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Linux port corrections:
* Add a more reasonable default device for linux
* Add an autoconf check for the FNM_LEADING_DIR extension
(which isn't yet obeyed in the code)
This commit is contained in:
parent
659c68935c
commit
dfee4c496f
3 changed files with 6 additions and 5 deletions
|
|
@ -65,11 +65,14 @@ struct option {
|
|||
|
||||
#include "bsdtar.h"
|
||||
|
||||
#ifdef linux
|
||||
#define _PATH_DEFTAPE "/dev/st0"
|
||||
#endif
|
||||
|
||||
#ifndef _PATH_DEFTAPE
|
||||
#define _PATH_DEFTAPE "/dev/tape"
|
||||
#endif
|
||||
|
||||
|
||||
static int bsdtar_getopt(struct bsdtar *, const char *optstring,
|
||||
const struct option **poption);
|
||||
static void long_help(struct bsdtar *);
|
||||
|
|
|
|||
|
|
@ -133,9 +133,6 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
/* XXX get fnmatch GNU extensions (FNM_LEADING_DIR)
|
||||
* (should probably use AC_FUNC_FNMATCH_GNU once using autoconf...) */
|
||||
|
||||
#if HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC
|
||||
#define ARCHIVE_STAT_MTIME_NANOS(st) (st)->st_mtimespec.tv_nsec
|
||||
#else
|
||||
|
|
@ -146,5 +143,4 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* !BSDTAR_PLATFORM_H_INCLUDED */
|
||||
|
|
|
|||
|
|
@ -33,6 +33,8 @@ AC_CHECK_DECL([D_MD_ORDER],
|
|||
|
||||
# Checks for library functions.
|
||||
AC_FUNC_FNMATCH
|
||||
# Check for FNM_LEADING_DIR fnmatch extension
|
||||
AC_GNU_SOURCE
|
||||
AC_PROG_GCC_TRADITIONAL
|
||||
AC_FUNC_LSTAT
|
||||
AC_HEADER_MAJOR
|
||||
|
|
|
|||
Loading…
Reference in a new issue