summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cifs.upcall.c2
-rwxr-xr-xconfigure3
-rw-r--r--configure.ac2
3 files changed, 4 insertions, 3 deletions
diff --git a/cifs.upcall.c b/cifs.upcall.c
index b83c36f..eb2279a 100644
--- a/cifs.upcall.c
+++ b/cifs.upcall.c
@@ -220,7 +220,7 @@ find_krb5_cc(const char *dirname, uid_t uid)
syslog(LOG_DEBUG, "%s: %s is valid ccache", __func__, ccname);
free(best_cache);
- best_cache = SMB_STRNDUP(ccname, MAX_CCNAME_LEN);
+ best_cache = strndup(ccname, MAX_CCNAME_LEN);
best_time = cred_time;
free(namelist[i]);
}
diff --git a/configure b/configure
index 1fcac6b..e121987 100755
--- a/configure
+++ b/configure
@@ -4349,7 +4349,8 @@ _ACEOF
-for ac_header in arpa/inet.h fcntl.h inttypes.h limits.h mntent.h netdb.h stddef.h stdint.h stdlib.h string.h strings.h sys/mount.h sys/param.h sys/socket.h sys/time.h unistd.h
+
+for ac_header in arpa/inet.h fcntl.h inttypes.h limits.h mntent.h netdb.h stddef.h stdint.h stdlib.h string.h strings.h sys/mount.h sys/param.h sys/socket.h sys/time.h syslog.h unistd.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
diff --git a/configure.ac b/configure.ac
index 92c7a4e..1ceba2e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,7 +16,7 @@ AC_PROG_CC
# Checks for header files.
AC_USE_SYSTEM_EXTENSIONS
-AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h limits.h mntent.h netdb.h stddef.h stdint.h stdlib.h string.h strings.h sys/mount.h sys/param.h sys/socket.h sys/time.h unistd.h])
+AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h limits.h mntent.h netdb.h stddef.h stdint.h stdlib.h string.h strings.h sys/mount.h sys/param.h sys/socket.h sys/time.h syslog.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL