From 99d24402236ab621f8c03fdba49e7a75e38263a5 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 20 Feb 2012 10:52:24 -0500 Subject: Depend on UCRED, we cannot work otherwise. --- proxy/external/platform.m4 | 2 +- proxy/src/gp_socket.c | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'proxy') diff --git a/proxy/external/platform.m4 b/proxy/external/platform.m4 index c67e081..2ac2cc4 100644 --- a/proxy/external/platform.m4 +++ b/proxy/external/platform.m4 @@ -44,5 +44,5 @@ if test x"$ac_cv_member_struct_ucred_pid" = xyes -a \ x"$ac_cv_member_struct_ucred_gid" = xyes ; then AC_DEFINE([HAVE_UCRED], [1], [Define if struct ucred is available]) else - AC_MSG_WARN([struct ucred is not available]) + AC_MSG_ERROR([struct ucred is not available]) fi diff --git a/proxy/src/gp_socket.c b/proxy/src/gp_socket.c index 233633b..01c89fe 100644 --- a/proxy/src/gp_socket.c +++ b/proxy/src/gp_socket.c @@ -42,9 +42,7 @@ struct gp_creds { int type; -#ifdef HAVE_UCRED struct ucred ucred; -#endif }; #define FRAGMENT_BIT (1 << 31) @@ -176,7 +174,6 @@ done: static int get_peercred(int fd, struct gp_conn *conn) { -#ifdef HAVE_UCRED socklen_t len; int ret; @@ -190,7 +187,6 @@ static int get_peercred(int fd, struct gp_conn *conn) } conn->creds.type |= CRED_TYPE_UNIX; -#endif return 0; } -- cgit