FreeBSD compile fixes
Pacman no longer compiles on FreeBSD (tried with version 8.2).
* FreeBSD ships with libarchive 2.7.0 that has slightly fewer macros
* diskspace.c does not have strict enough #ifdef's (for statfs/statvfs)
* util.c does not include <limits.h> for PATH_MAX constant
(that's what `man limits.h` and the POSIX spec say at least)
The following patches fix compilation on FreeBSD (and do not break
the testsuite on Archlinux).
Note the additional dependencies for the testsuite:
* python 2.6 or 2.7
* GNU make (due to wildcard usage in testsuite's Makefile.am)
To apply on branch 'maint'.
Rémy Oudompheng (3):
Fix compatibility with older versions of libarchive.
util.c: include limits.h for PATH_MAX macro
diskspace: add the actually used statfs type in ifdefs
acinclude.m4 | 8 ++++++--
lib/libalpm/be_sync.c | 2 ++
lib/libalpm/diskspace.c | 4 ++--
lib/libalpm/util.c | 1 +
4 files changed, 11 insertions(+), 4 deletions(-)
|All times are GMT. The time now is 09:24 AM.|
VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.