File: kfbsd.diff

package info (click to toggle)
cluster-glue 1.0.12-25
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,952 kB
  • sloc: ansic: 43,012; sh: 5,606; python: 941; makefile: 578; perl: 375; xml: 101
file content (16 lines) | stat: -rw-r--r-- 530 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Fix build on FreeBSD #650820
Author: Gabriele Giacone <1o5g4r8o@gmail.com>
Last-Update: 2012-07-24
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/lib/clplumbing/ipcsocket.c
+++ b/lib/clplumbing/ipcsocket.c
@@ -2406,7 +2406,7 @@ socket_verify_auth(struct IPC_CHANNEL* c
 
 #define	EXTRASPACE	0
 
-#ifdef HAVE_STRUCT_CMSGCRED
+#if defined(HAVE_STRUCT_CMSGCRED) || defined( __FreeBSD_kernel__) || defined(__GNU__)
 	/* FreeBSD */
   typedef struct cmsgcred Cred;
 #	define crRuid	cmcred_uid