Browse Source

build: fix build on openindiana 151a

openindiana toolchain is rather messy. This is the first cut only

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
Fabio M. Di Nitto 13 years ago
parent
commit
427fdd4558
3 changed files with 3 additions and 3 deletions
  1. 1 1
      configure.ac
  2. 1 1
      exec/coroparse.c
  3. 1 1
      include/corosync/coroapi.h

+ 1 - 1
configure.ac

@@ -362,7 +362,7 @@ case "$host_os" in
 				   [Prevent being scheduled RR])
 		AC_DEFINE_UNQUOTED([_SEM_SEMUN_UNDEFINED], [1],
 				   [The semun structure is undefined])
-		OS_CPPFLAGS="-D_REENTRANT"
+		OS_CPPFLAGS="-D__EXTENSIONS__ -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
 	;;
 	*)
 		AC_MSG_ERROR([Unsupported OS? hmmmm])

+ 1 - 1
exec/coroparse.c

@@ -1021,7 +1021,7 @@ static int read_uidgid_files_into_icmap(
 	if (dp == NULL)
 		return 0;
 
-	len = offsetof(struct dirent, d_name) + NAME_MAX + 1;
+	len = offsetof(struct dirent, d_name) + FILENAME_MAX + 1;
 
 	entry = malloc(len);
 	if (entry == NULL) {

+ 1 - 1
include/corosync/coroapi.h

@@ -35,7 +35,7 @@
 #define COROAPI_H_DEFINED
 
 #include <stdio.h>
-#ifdef COROSYNC_BSD
+#if defined(COROSYNC_BSD) || defined(COROSYNC_SOLARIS)
 #include <sys/uio.h>
 #endif
 #include <corosync/hdb.h>