[smpeg] Fix autoconf socklen_t macro

Brad Smith brad at comstyle.com
Sun Apr 15 05:40:24 EDT 2012

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.

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,
-  [#include <sys/socket.h>],
-  [socklen_t len = 42; return len;],
+  [#include <sys/types.h>
+  #include <sys/socket.h>],
+  [socklen_t x;],

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