diff options
author | cy <cy@FreeBSD.org> | 2012-12-13 04:39:52 +0800 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2012-12-13 04:39:52 +0800 |
commit | 865d6e6db7b50e7e0efc363cec2336d6a540f573 (patch) | |
tree | 8d44e425591dd4fef8b1389c90eba44bb1749bda /security/aide | |
parent | 4280c8bfe69ccea09617ed194801553682f5994f (diff) | |
download | freebsd-ports-gnome-865d6e6db7b50e7e0efc363cec2336d6a540f573.tar.gz freebsd-ports-gnome-865d6e6db7b50e7e0efc363cec2336d6a540f573.tar.zst freebsd-ports-gnome-865d6e6db7b50e7e0efc363cec2336d6a540f573.zip |
Fix FreeBSD 8.X compile issue discussed in aide mailing list
(http://www.mail-archive.com/aide@cs.tut.fi/msg01621.html).
Submitted by: ume
Diffstat (limited to 'security/aide')
-rw-r--r-- | security/aide/Makefile | 1 | ||||
-rw-r--r-- | security/aide/files/patch-include__aide.h | 13 | ||||
-rw-r--r-- | security/aide/files/patch-src__db_file.c | 13 |
3 files changed, 27 insertions, 0 deletions
diff --git a/security/aide/Makefile b/security/aide/Makefile index 86e1e4ec7195..2a282b7b5551 100644 --- a/security/aide/Makefile +++ b/security/aide/Makefile @@ -7,6 +7,7 @@ PORTNAME= aide PORTVERSION= 0.15.1 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= SF \ http://www.cs.tut.fi/~rammer/ diff --git a/security/aide/files/patch-include__aide.h b/security/aide/files/patch-include__aide.h new file mode 100644 index 000000000000..223b13ec8e7f --- /dev/null +++ b/security/aide/files/patch-include__aide.h @@ -0,0 +1,13 @@ +Index: include/aide.h +diff -u include/aide.h.orig include/aide.h +--- include/aide.h.orig 2010-08-09 02:39:31.000000000 +0900 ++++ include/aide.h 2012-10-30 02:24:36.845508733 +0900 +@@ -68,7 +68,7 @@ + # define HAVE_STRTOIMAX + #endif + +-#if SIZEOF_OFF64_T == SIZEOF_LONG_LONG ++#if AIDE_OFF_TYPE == off64_t && SIZEOF_OFF64_T == SIZEOF_LONG_LONG || AIDE_OFF_TYPE == off_t && SIZEOF_OFF_T == SIZEOF_LONG_LONG + # ifdef HAVE_STRTOLL + # define AIDE_STRTOLL_FUNC strtoll + # else diff --git a/security/aide/files/patch-src__db_file.c b/security/aide/files/patch-src__db_file.c new file mode 100644 index 000000000000..156c29de7baa --- /dev/null +++ b/security/aide/files/patch-src__db_file.c @@ -0,0 +1,13 @@ +Index: src/db_file.c +diff -u -p src/db_file.c.orig src/db_file.c +--- src/db_file.c.orig 2010-08-09 02:39:31.000000000 +0900 ++++ src/db_file.c 2012-10-30 02:25:43.671508126 +0900 +@@ -674,7 +674,7 @@ int db_writelong(AIDE_OFF_TYPE i,FILE* f + dofprintf(" "); + } + +-#if SIZEOF_OFF64_T == SIZEOF_LONG_LONG ++#if AIDE_OFF_TYPE == off64_t && SIZEOF_OFF64_T == SIZEOF_LONG_LONG || AIDE_OFF_TYPE == off_t && SIZEOF_OFF_T == SIZEOF_LONG_LONG + return dofprintf("%lli",(long long)i); + #else + return dofprintf("%li",i); |