aboutsummaryrefslogtreecommitdiffstats
path: root/biology
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2016-12-18 12:46:53 +0800
committermarino <marino@FreeBSD.org>2016-12-18 12:46:53 +0800
commit883325d4267340b966c9198a4c92090b60deeab4 (patch)
tree282e491c5016fa0464d27a936505b4b9e68a02a5 /biology
parentdb5a97184c2cdbc175d12448cc866b1b4c798f1f (diff)
downloadfreebsd-ports-gnome-883325d4267340b966c9198a4c92090b60deeab4.tar.gz
freebsd-ports-gnome-883325d4267340b966c9198a4c92090b60deeab4.tar.zst
freebsd-ports-gnome-883325d4267340b966c9198a4c92090b60deeab4.zip
biology/blat: Fix build on DF (taken from dports)
Diffstat (limited to 'biology')
-rw-r--r--biology/blat/files/patch-lib_fof.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/biology/blat/files/patch-lib_fof.c b/biology/blat/files/patch-lib_fof.c
new file mode 100644
index 000000000000..b961eba61b15
--- /dev/null
+++ b/biology/blat/files/patch-lib_fof.c
@@ -0,0 +1,14 @@
+--- lib/fof.c.orig 2014-11-06 03:15:59 UTC
++++ lib/fof.c
+@@ -336,7 +336,11 @@ static int cmpOnFilePos(const void *va,
+ {
+ const struct fofBatch *a = *((struct fofBatch **)va);
+ const struct fofBatch *b = *((struct fofBatch **)vb);
++#ifdef __DragonFly__
++int dif = (struct __FILE_public*)a->f - (struct __FILE_public*)b->f;
++#else
+ int dif = a->f - b->f;
++#endif
+ if (dif == 0)
+ dif = a->offset - b->offset;
+ return dif;