Package: uim
Severity: important
Version: 1:1.5.1-2
Tags: patch
User: [EMAIL PROTECTED]
Usertags: kfreebsd

Hi,

the current version fails to build on GNU/kFreeBSD.

It needs added test in configure.ac.
Surprisingly, result of this test is already checked
in replace/getpeereid.c ...

Please apply attached patch and perform

  autoheader
  autoconf

It would also be nice if you can ask upstream
to include this changes.

Thanks in advance

                        Petr
--- uim-1.5.1/configure.ac
+++ uim-1.5.1/configure.ac
@@ -607,6 +607,23 @@
                [define if you have struct sockaddr_storage data type])
 fi
 
+dnl cred related
+AC_CACHE_CHECK([for struct cmsgcred], ac_cv_have_struct_cmsgcred, [
+       AC_TRY_COMPILE(
+               [
+#include <sys/types.h>
+#include <sys/socket.h>
+               ],
+               [ struct cmsgcred s; ],
+               [ ac_cv_have_struct_cmsgcred="yes" ],
+               [ ac_cv_have_struct_cmsgcred="no" ]
+       )
+])
+if test "x$ac_cv_have_struct_cmsgcred" = "xyes" ; then
+       AC_DEFINE(HAVE_STRUCT_CMSGCRED, 1,
+               [define if you have struct cmsgcred data type])
+fi
+
 AC_CACHE_CHECK([for struct sockaddr_in6], ac_cv_have_struct_sockaddr_in6, [
        AC_TRY_COMPILE(
                [

Reply via email to