ocamlnet (2.2.9-8) 0002-Enable-struct-ucred.patch

Summary

 src/rpc-auth-local/rpclocal.c |    2 ++
 1 file changed, 2 insertions(+)

    
download this patch

Patch contents

From: Stefano Zacchiroli <zack@debian.org>
Date: Tue, 6 Oct 2009 15:31:41 +0200
Subject: [PATCH] Enable struct ucred

"struct ucred" is defined only if GNU extensions are enabled, hence
enable them (fix FTBFS with gcc)

Signed-off-by: Stefano Zacchiroli <zack@debian.org>
---
 src/rpc-auth-local/rpclocal.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/rpc-auth-local/rpclocal.c b/src/rpc-auth-local/rpclocal.c
index 6076fc8..191fee6 100644
--- a/src/rpc-auth-local/rpclocal.c
+++ b/src/rpc-auth-local/rpclocal.c
@@ -3,6 +3,8 @@
  *
  */
 
+#define _GNU_SOURCE 1
+
 #include "caml/mlvalues.h"
 #include "caml/alloc.h"
 #include "caml/memory.h"
--