[packages/openssh] add limits.h hack for ac in openbsd-compat

Jakub Bogusz qboosh at pld-linux.org
Tue May 13 17:16:04 CEST 2014


On Tue, May 13, 2014 at 05:42:28PM +0300, Elan Ruusamäe wrote:
> i would appreciate if somebody can do cleaner fix for this hack

> >+--- 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 <ctype.h>
> >+ #include <limits.h>
> >+
> >++#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;

Have you tried -std=c99 (to CFLAGS)?

LLONG_ constants are available for:

#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L


-- 
Jakub Bogusz    http://qboosh.pl/


More information about the pld-devel-en mailing list