summaryrefslogtreecommitdiff
path: root/net/ocamlnet/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2012-08-20 08:11:58 +0000
committerwiz <wiz@pkgsrc.org>2012-08-20 08:11:58 +0000
commit7270fe0a39f8cfe0447e1b11e76194c19106d250 (patch)
tree4f6d5024c1360eeff5b11bef7a93deaa888c4fdf /net/ocamlnet/patches
parentb27c156efe6ceb66b0f7dae3a610a080e7743537 (diff)
downloadpkgsrc-7270fe0a39f8cfe0447e1b11e76194c19106d250.tar.gz
Update to 3.6, provided by maintainer Jaap Boender in PR 46817.
This is an update of ocamlnet to its newest version, 3.6. Changes are: * Netsys_sem: a new abstraction for emulating anonymous semaphores on systems that only provide named semaphores, like OS X. All users of semaphores inside Ocamlnet now base on Netsys_sem. * reimplementing Netstring_str for the case the Str engine is used. It is now thread-safe without having to use mutexes. * The default is now -disable-pcre * The module Netstring_pcre has been moved to a library of its own, namely netstring-pcre. It is only installed if -enable-pcre * Nethttp.Header.best_media_type: improved (patch by Christopher Zimmemann) * Netsys_mem.alloc_memory_pages: one can now mark the memory pages as executable * src/netsys/configure: disabling POSIX semaphore check for win32 * Fixes for OpenBSD (by Christopher Zimmermann) * Netcgi connectors (SCGI, AJP, FCGI): unifying the ~sockaddr and ~port arguments. ~port now also assumes a loopback binding. (Suggested by Christopher Zimmermann). * Allowing posix_spawn again for MacOS. It turns out the number of file actions is limited. If we are above the limit, posix_spawn is not used. * Ssl_exts: adding function for returning the fingerprint of a certificate * Https_client: new verify callback for additional certificate checks
Diffstat (limited to 'net/ocamlnet/patches')
-rw-r--r--net/ocamlnet/patches/patch-src_netzip_netgzip.ml16
1 files changed, 16 insertions, 0 deletions
diff --git a/net/ocamlnet/patches/patch-src_netzip_netgzip.ml b/net/ocamlnet/patches/patch-src_netzip_netgzip.ml
new file mode 100644
index 00000000000..6575eab9c17
--- /dev/null
+++ b/net/ocamlnet/patches/patch-src_netzip_netgzip.ml
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_netzip_netgzip.ml,v 1.1 2012/08/20 08:11:58 wiz Exp $
+
+Syntax change to conform to ocaml 4.00
+--- src/netzip/netgzip.ml.orig 2012-07-19 23:25:26.000000000 +0000
++++ src/netzip/netgzip.ml
+@@ -322,8 +322,8 @@ class output_deflate ?level ch =
+ let () =
+ Netcompression.register
+ ~iana_name:"gzip"
+- ~decoder:(new inflating_pipe)
+- ~encoder:(new deflating_pipe)
++ ~decoder:(fun () -> new inflating_pipe ())
++ ~encoder:(fun () -> new deflating_pipe ())
+ ()
+
+