Solaris port patch to fix a few problems from last big patch.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1355 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
Steven Dake 2007-03-14 19:02:49 +00:00
parent 1c5bb34012
commit a4029d65a5
2 changed files with 5 additions and 5 deletions

View File

@ -36,12 +36,12 @@ endif
# default CFLAGS, LDFLAGS
#
CFLAGS =
CFLAGS =
LDFLAGS =
DYFLAGS =
# Adding the TS_CLASS flag enables not being scheduled RR
CFLAGS += -DTS_CLASS
#CFLAGS += -DTS_CLASS
# build CFLAGS, LDFLAGS
#
@ -57,7 +57,7 @@ ifeq (${OPENAIS_BUILD}, DEBUG)
CFLAGS += -O0 -g -Wall -DDEBUG
LDFLAGS += -g
ifeq (${OPENAIS_COMPAT}, SOLARIS)
CFLAGS += -Werror
CFLAGS += -Werror -DTS_CLASS
endif
endif
ifeq (${OPENAIS_BUILD}, COVERAGE)

View File

@ -753,11 +753,11 @@ static void libais_deliver (struct conn_info *conn_info)
msg_recv.msg_controllen = 0;
} else {
#ifdef OPENAIS_LINUX
uid_t euid = -1;
gid_t egid = -1;
msg_recv.msg_control = (void *)cmsg_cred;
msg_recv.msg_controllen = sizeof (cmsg_cred);
#else
uid_t euid = -1;
gid_t egid = -1;
if (getpeereid(conn_info->fd, &euid, &egid) != -1 &&
(euid == 0 || egid == g_gid_valid)) {
conn_info->authenticated = 1;