summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--configure.ac6
-rw-r--r--openbsd-compat/openbsd-compat.h7
-rw-r--r--sftp.c4
4 files changed, 16 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 90ce8610f..66e07fc63 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -46,6 +46,9 @@
46 - dtucker@cvs.openbsd.org 2013/06/05 22:00:28 46 - dtucker@cvs.openbsd.org 2013/06/05 22:00:28
47 [readconf.c] 47 [readconf.c]
48 plug another memleak. bz#1967, from Zhenbo Xu, detected by Melton, ok djm 48 plug another memleak. bz#1967, from Zhenbo Xu, detected by Melton, ok djm
49 - (dtucker) [configure.ac sftp.c openbsd-compat/openbsd-compat.h] Cater for
50 platforms that don't have multibyte character support (specifically,
51 mblen).
49 52
5020130602 5320130602
51 - (tim) [Makefile.in] Make Solaris, UnixWare, & OpenServer linkers happy 54 - (tim) [Makefile.in] Make Solaris, UnixWare, & OpenServer linkers happy
diff --git a/configure.ac b/configure.ac
index 2cd910cf9..bce5d7b17 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
1# $Id: configure.ac,v 1.533 2013/06/04 02:55:24 dtucker Exp $ 1# $Id: configure.ac,v 1.534 2013/06/05 22:30:21 dtucker Exp $
2# 2#
3# Copyright (c) 1999-2004 Damien Miller 3# Copyright (c) 1999-2004 Damien Miller
4# 4#
@@ -15,7 +15,7 @@
15# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 16
17AC_INIT([OpenSSH], [Portable], [openssh-unix-dev@mindrot.org]) 17AC_INIT([OpenSSH], [Portable], [openssh-unix-dev@mindrot.org])
18AC_REVISION($Revision: 1.533 $) 18AC_REVISION($Revision: 1.534 $)
19AC_CONFIG_SRCDIR([ssh.c]) 19AC_CONFIG_SRCDIR([ssh.c])
20AC_LANG([C]) 20AC_LANG([C])
21 21
@@ -310,6 +310,7 @@ AC_CHECK_HEADERS([ \
310 ia.h \ 310 ia.h \
311 iaf.h \ 311 iaf.h \
312 limits.h \ 312 limits.h \
313 locale.h \
313 login.h \ 314 login.h \
314 maillock.h \ 315 maillock.h \
315 ndir.h \ 316 ndir.h \
@@ -1563,6 +1564,7 @@ AC_CHECK_FUNCS([ \
1563 inet_ntop \ 1564 inet_ntop \
1564 innetgr \ 1565 innetgr \
1565 login_getcapbool \ 1566 login_getcapbool \
1567 mblen \
1566 md5_crypt \ 1568 md5_crypt \
1567 memmove \ 1569 memmove \
1568 mkdtemp \ 1570 mkdtemp \
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h
index 3dbf1f244..392fa38dc 100644
--- a/openbsd-compat/openbsd-compat.h
+++ b/openbsd-compat/openbsd-compat.h
@@ -1,4 +1,4 @@
1/* $Id: openbsd-compat.h,v 1.57 2013/05/16 10:47:32 dtucker Exp $ */ 1/* $Id: openbsd-compat.h,v 1.58 2013/06/05 22:30:21 dtucker Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1999-2003 Damien Miller. All rights reserved. 4 * Copyright (c) 1999-2003 Damien Miller. All rights reserved.
@@ -207,6 +207,11 @@ unsigned long long strtoull(const char *, char **, int);
207long long strtonum(const char *, long long, long long, const char **); 207long long strtonum(const char *, long long, long long, const char **);
208#endif 208#endif
209 209
210/* multibyte character support */
211#ifndef HAVE_MBLEN
212# define mblen(x, y) 1
213#endif
214
210#if !defined(HAVE_VASPRINTF) || !defined(HAVE_VSNPRINTF) 215#if !defined(HAVE_VASPRINTF) || !defined(HAVE_VSNPRINTF)
211# include <stdarg.h> 216# include <stdarg.h>
212#endif 217#endif
diff --git a/sftp.c b/sftp.c
index 0c90fd1e4..f50a4bb6a 100644
--- a/sftp.c
+++ b/sftp.c
@@ -38,7 +38,9 @@
38#ifdef HAVE_LIBGEN_H 38#ifdef HAVE_LIBGEN_H
39#include <libgen.h> 39#include <libgen.h>
40#endif 40#endif
41#include <locale.h> 41#ifdef HAVE_LOCALE_H
42# include <locale.h>
43#endif
42#ifdef USE_LIBEDIT 44#ifdef USE_LIBEDIT
43#include <histedit.h> 45#include <histedit.h>
44#else 46#else