[Libevent-users] [PATCH] Compiling on Solaris/OpenSolaris with
Sun Studio 12
Nick Mathewson
nickm at freehaven.net
Thu Sep 6 20:11:39 EDT 2007
On Thu, Sep 06, 2007 at 08:15:40PM +0200, Magne M?hre wrote:
>
> I tried to build 1.3d and svn trunk today, and came across a couple of
> issues.
> A patch is attached that remedies these problems, and I _think_ they won't
> break
> anything.
>
> 1. configure.in
> a) Added AC_CHECK_LIB for inet_ntoa in libnsl (it's where it lives on
> Solaris)
>
> b) Changed the checks for __func__ and __FUNCTION__ so it no longer tries
> to
> declare an inner function (the void foo() {}). Inner functions are not
> allowed in ISO C, so even though gcc accepts it, other compilers
> (like Sun Studio) don't.
>
> 2. test/regress.c
>
> a) Changed references for u_int32_t to uint32_t, since the latter is C99,
> and is also what's tested for in the configure script.
Thanks for your patches; I've checked them in to the subversion
repository. They should appear in the next release.
--
Nick Mathewson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: not available
Url : http://monkeymail.org/archives/libevent-users/attachments/20070906/e03db3bc/attachment.bin
More information about the Libevent-users
mailing list