Re: building on AIX



Hello, Roland
> > While running configure I saw:
> > checking for socklen_t... no
> 
> I have successfully built mc on AIX, and here is the patch I wrote for 
> it. Please try if it works for you, too.

Well, this crutch breaks compilation on RedHat 7.3 and RHEL 3:

ftpfs.c:97: conflicting types for `socklen_t'
/usr/include/bits/socket.h:36: previous declaration of `socklen_t'

Attached crutch makes this error even ;-) and allow compilation for these distros.
But I am more than sure it breaks compilation for everything but Linux.
Can you test it?

Anyway think AC_CHECK_TYPE(socklen_t, int) is more common.

BTW, maybe it's not right to break compilation on some platforms due to AIX 
warning fix?

-- 
Regards,
Andrew V. Samoilov.
--- configure.ac~	Thu Nov  4 09:26:09 2004
+++ configure.ac	Fri Nov  5 18:42:50 2004
@@ -218,6 +218,7 @@ AC_CHECK_TYPE(nlink_t, unsigned int)
 AC_CHECK_TYPES([socklen_t],
   AC_DEFINE([HAVE_C_TYPE_SOCKLEN_T], [1], [Define to 1 if socklen_t is defined by <sys/socket.h>]),,
 [#include <sys/types.h>
+#include <bits/socket.h>
 #include <sys/socket.h>])
 
 dnl This is needed for regex.c only


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