[PATCH 10/13] build: drop COROSYNC_BSD out of configure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Fabio M. Di Nitto" <fdinitto@xxxxxxxxxx>

Signed-off-by: Fabio M. Di Nitto <fdinitto@xxxxxxxxxx>
---
:100644 100644 7ff8997... 6d28417... M	configure.ac
:100644 100644 6266b45... 0c3a5ec... M	include/corosync/coroapi.h
 configure.ac               |    6 +-----
 include/corosync/coroapi.h |    4 +++-
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index 7ff8997..6d28417 100644
--- a/configure.ac
+++ b/configure.ac
@@ -94,7 +94,7 @@ AC_HEADER_SYS_WAIT
 AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h stdint.h \
 		  stdlib.h string.h sys/ioctl.h sys/param.h sys/socket.h \
 		  sys/time.h syslog.h unistd.h sys/types.h getopt.h malloc.h \
-		  utmpx.h ifaddrs.h stddef.h sys/file.h])
+		  utmpx.h ifaddrs.h stddef.h sys/file.h sys/uio.h])
 
 AC_CHECK_MEMBER([struct sockaddr_in.sin_len],
 		[AC_DEFINE_UNQUOTED([HAVE_SOCK_SIN_LEN], [1], [sockaddr_in needs sin_len])],
@@ -343,10 +343,6 @@ case "$host_os" in
 			     -current_version ${SONAME} \
 			     -compatibility_version ${SONAME} -install_name \$(libdir)/\$(@)"
 	;;
-	*bsd*)
-		AC_DEFINE_UNQUOTED([COROSYNC_BSD], [1],
-				   [Compiling for BSD platform])
-	;;
 	*solaris*)
 		AC_DEFINE_UNQUOTED([COROSYNC_SOLARIS], [1],
 				   [Compiling for Solaris platform])
diff --git a/include/corosync/coroapi.h b/include/corosync/coroapi.h
index 6266b45..0c3a5ec 100644
--- a/include/corosync/coroapi.h
+++ b/include/corosync/coroapi.h
@@ -34,8 +34,10 @@
 #ifndef COROAPI_H_DEFINED
 #define COROAPI_H_DEFINED
 
+#include <config.h>
+
 #include <stdio.h>
-#if defined(COROSYNC_BSD) || defined(COROSYNC_SOLARIS)
+#ifdef HAVE_SYS_UIO_H
 #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


[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux