biology/blat: Fix build on DF (taken from dports)

This commit is contained in:
John Marino 2016-12-18 04:46:53 +00:00
parent cfcd1f0b68
commit e3618c8063
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=428834

View File

@ -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;