summaryrefslogtreecommitdiff
path: root/openbsd-compat
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2013-06-06 08:30:20 +1000
committerDarren Tucker <dtucker@zip.com.au>2013-06-06 08:30:20 +1000
commitae133d4b31af05bb232d797419f498f3ae7e9f2d (patch)
tree5263ae5e32ed9ef71d839c7a2f3a005a636cab6a /openbsd-compat
parent408eaf3ab716096f8faf30f091bd54a2c7a17a09 (diff)
- (dtucker) [configure.ac sftp.c openbsd-compat/openbsd-compat.h] Cater for
platforms that don't have multibyte character support (specifically, mblen).
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/openbsd-compat.h7
1 files changed, 6 insertions, 1 deletions
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