[smpeg] Fix autoconf socklen_t macro
Brad Smith
brad at comstyle.com
Fri Jun 8 22:21:26 EDT 2012
On Sun, Apr 15, 2012 at 05:40:24AM -0400, Brad Smith wrote:
> Here is a patch to fix the socklen_t macro to be able to build and work on
> OpenBSD. This fixes the build of smpeg on OpenBSD.
Ryan?
> Index: acinclude/socklen_t.m4
> ===================================================================
> --- acinclude/socklen_t.m4 (revision 394)
> +++ acinclude/socklen_t.m4 (working copy)
> @@ -12,8 +12,9 @@
> [AC_CACHE_CHECK([for socklen_t], ac_cv_type_socklen_t,
> [
> AC_TRY_COMPILE(
> - [#include <sys/socket.h>],
> - [socklen_t len = 42; return len;],
> + [#include <sys/types.h>
> + #include <sys/socket.h>],
> + [socklen_t x;],
> ac_cv_type_socklen_t=yes,
> ac_cv_type_socklen_t=no)
> ])
>
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the smpeg
mailing list