diff options
author | asau <asau@pkgsrc.org> | 2014-04-17 21:23:19 +0000 |
---|---|---|
committer | asau <asau@pkgsrc.org> | 2014-04-17 21:23:19 +0000 |
commit | 694534f68c6c0be1e86ff6844d3542f51586967f (patch) | |
tree | 1eed2b4ddb74ba6d3ea78aa28b8c8151907e0a63 /biology | |
parent | a76398c5c9b6d50825caef9be73339f6b7045f68 (diff) | |
download | pkgsrc-694534f68c6c0be1e86ff6844d3542f51586967f.tar.gz |
__BSD_VISIBLE is needed on FreeBSD for PF_INET.
Diffstat (limited to 'biology')
-rw-r--r-- | biology/plinkseq/distinfo | 4 | ||||
-rw-r--r-- | biology/plinkseq/patches/patch-browser_mongoose.c | 20 |
2 files changed, 19 insertions, 5 deletions
diff --git a/biology/plinkseq/distinfo b/biology/plinkseq/distinfo index d34cce4afc0..60d32fefbfb 100644 --- a/biology/plinkseq/distinfo +++ b/biology/plinkseq/distinfo @@ -1,10 +1,10 @@ -$NetBSD: distinfo,v 1.2 2014/02/08 12:27:14 wiedi Exp $ +$NetBSD: distinfo,v 1.3 2014/04/17 21:23:19 asau Exp $ SHA1 (plinkseq-0.08.tar.gz) = 8bff6b32750eee85559dda2c7c3cf9aea423a3d7 RMD160 (plinkseq-0.08.tar.gz) = bce0966ea5f25d8c1091157561aaf533a98595ec Size (plinkseq-0.08.tar.gz) = 2991871 bytes SHA1 (patch-browser_main.c) = 2bbeed764180b0a0e30f134b40c650cfa20bdcec -SHA1 (patch-browser_mongoose.c) = 8bec1f482c05f9a2fcf0acb8fbb8d5d79f279566 +SHA1 (patch-browser_mongoose.c) = 02233e0dd1f4c7923ffabf1a16b30c374253d87e SHA1 (patch-lib_annot.cpp) = b405bca26186ea08241ad5936c2a1b43212d8dec SHA1 (patch-lib_annot.h) = 5efccddf878b4628ae7186d59a726a157d356196 SHA1 (patch-lib_token.cpp) = 848e7b790db6a4784697482ea330b4d474731368 diff --git a/biology/plinkseq/patches/patch-browser_mongoose.c b/biology/plinkseq/patches/patch-browser_mongoose.c index 2a6d30d53e6..a42087a4b64 100644 --- a/biology/plinkseq/patches/patch-browser_mongoose.c +++ b/biology/plinkseq/patches/patch-browser_mongoose.c @@ -1,15 +1,29 @@ -$NetBSD: patch-browser_mongoose.c,v 1.1 2014/02/08 12:27:14 wiedi Exp $ +$NetBSD: patch-browser_mongoose.c,v 1.2 2014/04/17 21:23:19 asau Exp $ + +__BSD_VISIBLE is needed on FreeBSD. +_XOPEN_SOURCE is not needed on sunos. -not needed on sunos --- browser/mongoose.c.orig 2011-11-17 17:17:36.000000000 +0000 +++ browser/mongoose.c -@@ -21,7 +21,9 @@ +@@ -21,7 +21,10 @@ #if defined(_WIN32)
#define _CRT_SECURE_NO_WARNINGS // Disable deprecation warning in VS2005
#else
+#if !defined(__sun)
#define _XOPEN_SOURCE 600 // For flockfile() on Linux
++#define __BSD_VISIBLE 1 // For PF_INET on FreeBSD
+#endif
#define _LARGEFILE_SOURCE // Enable 64-bit file offsets
#define __STDC_FORMAT_MACROS // <inttypes.h> wants this for C++
#endif
+@@ -213,6 +216,10 @@ typedef int SOCKET;
+
+ #endif // End of Windows and UNIX specific includes
+
++#if defined(__FreeBSD__)
++#include <sys/socket.h>
++#endif
++
+ #include "mongoose.h"
+
+ #define MONGOOSE_VERSION "3.0"
|