summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.h.in3
-rwxr-xr-xconfigure5
-rw-r--r--configure.ac1
-rw-r--r--ldap/servers/plugins/replication/cl5_api.c5
-rw-r--r--ldap/servers/plugins/replication/windows_protocol_util.c2
-rw-r--r--ldap/servers/slapd/back-ldbm/back-ldbm.h2
-rw-r--r--ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c2
7 files changed, 16 insertions, 4 deletions
diff --git a/config.h.in b/config.h.in
index 71c0ecf2..cecadc7b 100644
--- a/config.h.in
+++ b/config.h.in
@@ -272,6 +272,9 @@
/* Linux */
#undef Linux
+/* no getdomainname */
+#undef NO_DOMAINNAME
+
/* Define to 1 if your C compiler doesn't accept -c and -o together. */
#undef NO_MINUS_C_MINUS_O
diff --git a/configure b/configure
index 161dc68a..e6ed9c6d 100755
--- a/configure
+++ b/configure
@@ -23360,6 +23360,11 @@ cat >>confdefs.h <<\_ACEOF
#define _REENTRANT 1
_ACEOF
+
+cat >>confdefs.h <<\_ACEOF
+#define NO_DOMAINNAME 1
+_ACEOF
+
LIBSOCKET=-lsocket
LIBSOCKET=$LIBSOCKET
diff --git a/configure.ac b/configure.ac
index 851c6579..d5062748 100644
--- a/configure.ac
+++ b/configure.ac
@@ -310,6 +310,7 @@ case $host in
AC_DEFINE([sunos5], [1], [SunOS5])
AC_DEFINE([OSVERSION], [509], [OS version])
AC_DEFINE([_REENTRANT], [1], [_REENTRANT])
+ AC_DEFINE([NO_DOMAINNAME], [1], [no getdomainname])
dnl socket nsl and dl are required to link several programs and libdb
LIBSOCKET=-lsocket
AC_SUBST([LIBSOCKET], [$LIBSOCKET])
diff --git a/ldap/servers/plugins/replication/cl5_api.c b/ldap/servers/plugins/replication/cl5_api.c
index 6ea4ec9a..b8ab11d3 100644
--- a/ldap/servers/plugins/replication/cl5_api.c
+++ b/ldap/servers/plugins/replication/cl5_api.c
@@ -43,6 +43,7 @@
/* cl5_api.c - implementation of 5.0 style changelog API */
+#include <unistd.h>
#include <errno.h>
#include <sys/stat.h>
#if defined( OS_solaris ) || defined( hpux )
@@ -6451,8 +6452,8 @@ static void _cl5DBCloseFile (void **data)
if (rc != 0)
{
slapi_log_error(SLAPI_LOG_REPL, repl_plugin_name_cl, "_cl5DBCloseFile: "
- "failed to remove (%s) file; libdb error - %d (%s)\n", file->name,
- rc, dblayer_strerror(rc));
+ "failed to remove (%s) file; libdb error - %d (%s)\n",
+ fullpathname, rc, db_strerror(rc));
}
}
diff --git a/ldap/servers/plugins/replication/windows_protocol_util.c b/ldap/servers/plugins/replication/windows_protocol_util.c
index e0ab290c..8088d622 100644
--- a/ldap/servers/plugins/replication/windows_protocol_util.c
+++ b/ldap/servers/plugins/replication/windows_protocol_util.c
@@ -2256,7 +2256,7 @@ map_windows_tombstone_dn(Slapi_Entry *e, Slapi_DN **dn, Private_Repl_Protocol *p
* to trim the DN to only dc components. */
if (suffix = slapi_sdn_get_dn(windows_private_get_windows_subtree(prp->agmt))) {
/* If this isn't found, it is treated as an error below. */
- suffix = (const char *) strcasestr(suffix,"dc=");
+ suffix = (const char *) PL_strcasestr(suffix,"dc=");
}
if (cn && guid && suffix) {
diff --git a/ldap/servers/slapd/back-ldbm/back-ldbm.h b/ldap/servers/slapd/back-ldbm/back-ldbm.h
index 0c407da3..87e04683 100644
--- a/ldap/servers/slapd/back-ldbm/back-ldbm.h
+++ b/ldap/servers/slapd/back-ldbm/back-ldbm.h
@@ -54,8 +54,10 @@
/* needed by at least HPUX and Solaris, to define off64_t */
#ifdef DB_USE_64LFS
+#if !defined(_LARGEFILE64_SOURCE)
#define _LARGEFILE64_SOURCE
#endif
+#endif
/* A bunch of random system headers taken from all the source files, no source file should #include
any system headers now */
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c b/ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c
index 154c8af6..ef031eeb 100644
--- a/ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c
+++ b/ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c
@@ -588,7 +588,7 @@ attrcrypt_crypto_op(attrcrypt_private *priv, backend *be, struct attrinfo *ai, c
output_buffer_length = in_size + 16;
output_buffer = (unsigned char *)slapi_ch_malloc(output_buffer_length);
/* Now call NSS to do the cipher op */
- iv_item.data = "aaaaaaaaaaaaaaaa"; /* ptr to an array of IV bytes */
+ iv_item.data = (unsigned char *)"aaaaaaaaaaaaaaaa"; /* ptr to an array of IV bytes */
iv_item.len = acs->ace->iv_length; /* length of the array of IV bytes */
security_parameter = slapd_pk11_ParamFromIV(acs->ace->cipher_mechanism, &iv_item);
if (NULL == security_parameter) {