Browse Source

Fix comile failures for BSD/Darwin port

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1019 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 20 years ago
parent
commit
b6543dd3c4
2 changed files with 3 additions and 1 deletions
  1. 2 0
      exec/aispoll.h
  2. 1 1
      exec/ipc.c

+ 2 - 0
exec/aispoll.h

@@ -34,6 +34,8 @@
 #ifndef POLL_H_DEFINED
 #ifndef POLL_H_DEFINED
 #define POLL_H_DEFINED
 #define POLL_H_DEFINED
 
 
+#include <pthread.h>
+
 typedef void * poll_timer_handle;
 typedef void * poll_timer_handle;
 typedef unsigned int poll_handle;
 typedef unsigned int poll_handle;
 
 

+ 1 - 1
exec/ipc.c

@@ -533,7 +533,7 @@ static int libais_deliver (struct conn_info *conn_info)
 				conn_info->authenticated = 1;
 				conn_info->authenticated = 1;
 		}
 		}
 		if (conn_info->authenticated == 0) {
 		if (conn_info->authenticated == 0) {
-			log_printf (LOG_LEVEL_SECURITY, "Connection not authenticated because gid is %d, expecting %d\n", egid, gid_valid);
+			log_printf (LOG_LEVEL_SECURITY, "Connection not authenticated because gid is %d, expecting %d\n", egid, g_gid_valid);
 		}
 		}
 #endif
 #endif
 	}
 	}