]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Add #include <sys/types.h> to the ssize_t test program (#4303)
authorJames Jones <jejones3141@gmail.com>
Thu, 4 Nov 2021 14:16:35 +0000 (09:16 -0500)
committerGitHub <noreply@github.com>
Thu, 4 Nov 2021 14:16:35 +0000 (10:16 -0400)
That's (at least one place) where ssize_t gets defined, so the
test program can work as intended. (The header's there for Mac
OS X as well.)

configure
m4/ax_cc.m4

index fd740722571cbad692df954addaea0f8b479fa50..57eeb8794dc6ba0289145bdf1af175727e265d7d 100755 (executable)
--- a/configure
+++ b/configure
@@ -15487,6 +15487,7 @@ else $as_nop
 
         #include <stdint.h>
         #include <stddef.h>
+        #include <sys/types.h>
 
         int main(int argc, char **argv) {
           return _Generic((ssize_t)(0), int64_t: 1, default: 0);
index d948efc6b1996981135d6a8bc0a7554330659102..5dcc71fbba20487fd09d59a67e3b5cfa3f321738 100644 (file)
@@ -398,6 +398,7 @@ AC_CACHE_CHECK([if ssize_t == int64_t], [ax_cv_cc_ssize_same_as_int64],[
       AC_LANG_SOURCE([
         #include <stdint.h>
         #include <stddef.h>
+        #include <sys/types.h>
 
         int main(int argc, char **argv) {
           return _Generic((ssize_t)(0), int64_t: 1, default: 0);