]> git.pld-linux.org Git - packages/openssh.git/blob - limits.h.patch
add limits.h hack for ac in openbsd-compat
[packages/openssh.git] / limits.h.patch
1 --- openssh-6.6p1/openbsd-compat/fmt_scaled.c~  2014-05-13 17:23:35.999776940 +0300
2 +++ openssh-6.6p1/openbsd-compat/fmt_scaled.c   2014-05-13 17:23:40.989697403 +0300
3 @@ -49,6 +49,11 @@
4  #include <ctype.h>
5  #include <limits.h>
6  
7 +#if !defined(LLONG_MAX)
8 +#   define LLONG_MAX   9223372036854775807LL
9 +#   define LLONG_MIN   (-LLONG_MAX - 1LL)
10 +#endif
11 +
12  typedef enum {
13         NONE = 0, KILO = 1, MEGA = 2, GIGA = 3, TERA = 4, PETA = 5, EXA = 6
14  } unit_type;
15 --- openssh-6.6p1/openbsd-compat/strtonum.c~    2006-08-05 09:27:20.000000000 +0300
16 +++ openssh-6.6p1/openbsd-compat/strtonum.c     2014-05-13 17:31:27.715592099 +0300
17 @@ -26,6 +26,11 @@
18  #include <limits.h>
19  #include <errno.h>
20  
21 +#if !defined(LLONG_MAX)
22 +#   define LLONG_MAX   9223372036854775807LL
23 +#   define LLONG_MIN   (-LLONG_MAX - 1LL)
24 +#endif
25 +
26  #define INVALID        1
27  #define TOOSMALL       2
28  #define TOOLARGE       3
This page took 0.089398 seconds and 3 git commands to generate.