#include <caml/mlvalues.h>
#include <caml/memory.h>
#include <caml/custom.h>
#include <caml/callback.h>
#include <caml/alloc.h>

#include <stdio.h>

#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <sys/socket.h>
#endif

CAMLprim value stub_get_SOMAXCONN(value unit){
  fprintf(stderr, "SOMAXCONN = %d\n", SOMAXCONN);
  return (Val_int (SOMAXCONN));
}

#include <caml/mlvalues.h>
#include <caml/memory.h>
#include <caml/custom.h>
#include <caml/callback.h>
#include <caml/alloc.h>

#include <stdio.h>

#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <sys/socket.h>
#endif

CAMLprim value stub_get_SOMAXCONN(){
  fprintf(stderr, "SOMAXCONN = %d\n", SOMAXCONN);
  return (Val_int (SOMAXCONN));
}

--- 
+++ 
@@ -14,7 +14,7 @@
 #include <sys/socket.h>
 #endif
 
-CAMLprim value stub_get_SOMAXCONN(){
+CAMLprim value stub_get_SOMAXCONN(value unit){
   fprintf(stderr, "SOMAXCONN = %d\n", SOMAXCONN);
   return (Val_int (SOMAXCONN));
 }
Add `value` parameter to SOMAXCONN binding

Problem spotted by yallop in
https://github.com/moby/vpnkit/commit/8d718125a66fbe746ba17ad3e85b7924ac0ed9a4#commitcomment-21930309

Signed-off-by: David Scott <63c9eb0ea83039690fefa11afe17873ba8278a56@docker.com>
