]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Define SSIZE_MIN if missing
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 15 Feb 2018 17:31:44 +0000 (17:31 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 15 Feb 2018 20:33:28 +0000 (20:33 +0000)
src/include/missing-h

index 2c59c1e10a10fbf690093172d8c7eb4c1ff4056a..5a20fe9f5e8ec11d6ab07e41b48b18da6b75242a 100644 (file)
@@ -84,6 +84,8 @@ RCSIDH(missing_h, "$Id$")
 #  include <errno.h>
 #endif
 
+#include <limits.h>
+
 /*
  *  Check for inclusion of <time.h>, versus <sys/time.h>
  *  Taken verbatim from the autoconf manual.
@@ -422,6 +424,10 @@ int clock_gettime(int clk_id, struct timespec *t);
 void timeval2ntp(struct  timeval const *tv, uint8_t *ntp);
 void ntp2timeval(struct timeval *tv, char const *ntp);
 
+#ifndef SSIZE_MIN
+#  define SSIZE_MIN LONG_MIN
+#endif
+
 /*
  *     This is really hacky. Any code needing to perform operations on 128bit integers,
  *     or return 128BIT integers should check for HAVE_128BIT_INTEGERS.