ALT Linux repositórios
Group :: Sistema/Servidores
RPM: openldap
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: openldap-2.3.43-fix-ucred.patch
Download
Download
--- openldap-2.3.43/configure.in.orig 2008-02-11 23:24:06 +0000
+++ openldap-2.3.43/configure.in 2008-12-12 10:12:14 +0000
@@ -929,6 +929,16 @@ AC_CHECK_HEADERS( sys/ucred.h, [], [],
#include <sys/param.h>
#endif
])
+dnl Check whether ucred is defined without _GNU_SOURCE
+AC_MSG_CHECKING(for struct ucred)
+AC_TRY_LINK([
+#include <sys/ucred.h>
+#include <sys/socket.h>
+],[
+struct ucred sucred; sucred.pid=0;
+],[has_ucred=yes],[has_ucred=no])
+AC_MSG_RESULT($has_ucred)
+if test ${has_ucred} = no ; then CFLAGS="$CFLAGS -D_GNU_SOURCE"; fi
dnl ----------------------------------------------------------------
dnl Checks for libraries