diff options
author | Darren Tucker <dtucker@zip.com.au> | 2013-06-06 08:30:20 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2013-06-06 08:30:20 +1000 |
commit | ae133d4b31af05bb232d797419f498f3ae7e9f2d (patch) | |
tree | 5263ae5e32ed9ef71d839c7a2f3a005a636cab6a | |
parent | 408eaf3ab716096f8faf30f091bd54a2c7a17a09 (diff) |
- (dtucker) [configure.ac sftp.c openbsd-compat/openbsd-compat.h] Cater for
platforms that don't have multibyte character support (specifically,
mblen).
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | openbsd-compat/openbsd-compat.h | 7 | ||||
-rw-r--r-- | sftp.c | 4 |
4 files changed, 16 insertions, 4 deletions
@@ -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 | ||
50 | 20130602 | 53 | 20130602 |
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 | ||
17 | AC_INIT([OpenSSH], [Portable], [openssh-unix-dev@mindrot.org]) | 17 | AC_INIT([OpenSSH], [Portable], [openssh-unix-dev@mindrot.org]) |
18 | AC_REVISION($Revision: 1.533 $) | 18 | AC_REVISION($Revision: 1.534 $) |
19 | AC_CONFIG_SRCDIR([ssh.c]) | 19 | AC_CONFIG_SRCDIR([ssh.c]) |
20 | AC_LANG([C]) | 20 | AC_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); | |||
207 | long long strtonum(const char *, long long, long long, const char **); | 207 | long 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 |
@@ -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 |