diff options
Diffstat (limited to 'proxy')
-rw-r--r-- | proxy/external/platform.m4 | 2 | ||||
-rw-r--r-- | proxy/src/gp_socket.c | 4 |
2 files changed, 1 insertions, 5 deletions
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; } |