summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--configure.ac9
-rw-r--r--defines.h10
3 files changed, 18 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 7513c3d50..69541297c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,8 @@
4 a no-op in OpenSSH). From chl at openbsd. 4 a no-op in OpenSSH). From chl at openbsd.
5 - (dtucker) [openbsd-compat/setproctitle.c] Handle error case form the 2nd 5 - (dtucker) [openbsd-compat/setproctitle.c] Handle error case form the 2nd
6 vsnprintf. From eric at openbsd via chl@. 6 vsnprintf. From eric at openbsd via chl@.
7 - (dtucker) [configure.ac defines.h] Add typedefs for intmax_t and uintmax_t
8 for platforms that don't have them.
7 9
820131030 1020131030
9 - (djm) OpenBSD CVS Sync 11 - (djm) OpenBSD CVS Sync
diff --git a/configure.ac b/configure.ac
index 4a1b50331..0611b71b9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
1# $Id: configure.ac,v 1.536 2013/08/04 11:48:41 dtucker Exp $ 1# $Id: configure.ac,v 1.537 2013/11/03 07:43:55 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.536 $) 18AC_REVISION($Revision: 1.537 $)
19AC_CONFIG_SRCDIR([ssh.c]) 19AC_CONFIG_SRCDIR([ssh.c])
20AC_LANG([C]) 20AC_LANG([C])
21 21
@@ -3137,6 +3137,11 @@ if test "x$ac_cv_have_u_char" = "xyes" ; then
3137 AC_DEFINE([HAVE_U_CHAR], [1], [define if you have u_char data type]) 3137 AC_DEFINE([HAVE_U_CHAR], [1], [define if you have u_char data type])
3138fi 3138fi
3139 3139
3140AC_CHECK_TYPES([intmax_t, uintmax_t], , , [
3141#include <sys/types.h>
3142#include <stdint.h>
3143])
3144
3140TYPE_SOCKLEN_T 3145TYPE_SOCKLEN_T
3141 3146
3142AC_CHECK_TYPES([sig_atomic_t], , , [#include <signal.h>]) 3147AC_CHECK_TYPES([sig_atomic_t], , , [#include <signal.h>])
diff --git a/defines.h b/defines.h
index d5ce52f32..f4b262c82 100644
--- a/defines.h
+++ b/defines.h
@@ -25,7 +25,7 @@
25#ifndef _DEFINES_H 25#ifndef _DEFINES_H
26#define _DEFINES_H 26#define _DEFINES_H
27 27
28/* $Id: defines.h,v 1.172 2013/06/01 21:18:48 dtucker Exp $ */ 28/* $Id: defines.h,v 1.173 2013/11/03 07:43:55 dtucker Exp $ */
29 29
30 30
31/* Constants */ 31/* Constants */
@@ -269,6 +269,14 @@ typedef unsigned long long int u_int64_t;
269# endif 269# endif
270#endif 270#endif
271 271
272#ifndef HAVE_INTMAX_T
273typedef long long intmax_t;
274#endif
275
276#ifndef HAVE_UINTMAX_T
277typedef unsigned long long uintmax_t;
278#endif
279
272#ifndef HAVE_U_CHAR 280#ifndef HAVE_U_CHAR
273typedef unsigned char u_char; 281typedef unsigned char u_char;
274# define HAVE_U_CHAR 282# define HAVE_U_CHAR