From: "Fabio M. Di Nitto" <fdinitto@xxxxxxxxxx> openindiana toolchain is rather messy. This is the first cut only Signed-off-by: Fabio M. Di Nitto <fdinitto@xxxxxxxxxx> --- :100644 100644 86cf09c... cac4a84... M configure.ac :100644 100644 7a2b2a8... 3e686e8... M exec/coroparse.c :100644 100644 6069c0d... 6266b45... M include/corosync/coroapi.h configure.ac | 2 +- exec/coroparse.c | 2 +- include/corosync/coroapi.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 86cf09c..cac4a84 100644 --- a/configure.ac +++ b/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]) diff --git a/exec/coroparse.c b/exec/coroparse.c index 7a2b2a8..3e686e8 100644 --- a/exec/coroparse.c +++ b/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) { diff --git a/include/corosync/coroapi.h b/include/corosync/coroapi.h index 6069c0d..6266b45 100644 --- a/include/corosync/coroapi.h +++ b/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> -- 1.7.7.6 _______________________________________________ discuss mailing list discuss@xxxxxxxxxxxx http://lists.corosync.org/mailman/listinfo/discuss