From: Elan Ruusamäe Date: Tue, 13 May 2014 14:39:52 +0000 (+0300) Subject: add limits.h hack for ac in openbsd-compat X-Git-Tag: auto/th/openssh-6.6p1-3~2 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?p=packages%2Fopenssh.git;a=commitdiff_plain;h=621739ab2a22c5136a198a0a5e2dada6391f137f add limits.h hack for ac in openbsd-compat --- diff --git a/limits.h.patch b/limits.h.patch new file mode 100644 index 0000000..5798141 --- /dev/null +++ b/limits.h.patch @@ -0,0 +1,28 @@ +--- openssh-6.6p1/openbsd-compat/fmt_scaled.c~ 2014-05-13 17:23:35.999776940 +0300 ++++ openssh-6.6p1/openbsd-compat/fmt_scaled.c 2014-05-13 17:23:40.989697403 +0300 +@@ -49,6 +49,11 @@ + #include + #include + ++#if !defined(LLONG_MAX) ++# define LLONG_MAX 9223372036854775807LL ++# define LLONG_MIN (-LLONG_MAX - 1LL) ++#endif ++ + typedef enum { + NONE = 0, KILO = 1, MEGA = 2, GIGA = 3, TERA = 4, PETA = 5, EXA = 6 + } unit_type; +--- openssh-6.6p1/openbsd-compat/strtonum.c~ 2006-08-05 09:27:20.000000000 +0300 ++++ openssh-6.6p1/openbsd-compat/strtonum.c 2014-05-13 17:31:27.715592099 +0300 +@@ -26,6 +26,11 @@ + #include + #include + ++#if !defined(LLONG_MAX) ++# define LLONG_MAX 9223372036854775807LL ++# define LLONG_MIN (-LLONG_MAX - 1LL) ++#endif ++ + #define INVALID 1 + #define TOOSMALL 2 + #define TOOLARGE 3 diff --git a/openssh.spec b/openssh.spec index ac6ed1c..d1357c9 100644 --- a/openssh.spec +++ b/openssh.spec @@ -67,6 +67,7 @@ Patch8: ldap-helper-sigpipe.patch Patch9: %{name}-5.2p1-hpn13v6.diff Patch10: %{name}-include.patch Patch11: %{name}-chroot.patch +Patch12: limits.h.patch Patch14: %{name}-bind.patch Patch15: %{name}-disable_ldap.patch @@ -537,6 +538,7 @@ openldap-a. %{?with_hpn:%patch9 -p1} %patch10 -p1 %patch11 -p1 +%patch12 -p1 %patch14 -p1 %{!?with_ldap:%patch15 -p1}