unix (732:ab017ff0ee67) unix (733:d8656b9d7293)
1
2# Copyright (C) Igor Sysoev
3# Copyright (C) NGINX, Inc.
4
5
6# Linux 3.17 with glibc 2.25, FreeBSD 12, Solaris 11.3.
7
8nxt_feature="getrandom()"

--- 34 unchanged lines hidden (view full) ---

43 }
44
45 return 0;
46 }"
47 . auto/feature
48fi
49
50
1
2# Copyright (C) Igor Sysoev
3# Copyright (C) NGINX, Inc.
4
5
6# Linux 3.17 with glibc 2.25, FreeBSD 12, Solaris 11.3.
7
8nxt_feature="getrandom()"

--- 34 unchanged lines hidden (view full) ---

43 }
44
45 return 0;
46 }"
47 . auto/feature
48fi
49
50
51if [ $nxt_found = no ]; then
52
53 # OpenBSD 5.6 lacks <sys/random.h>.
54
55 nxt_feature="getentropy()"
56 nxt_feature_name=NXT_HAVE_GETENTROPY
57 nxt_feature_test="#include <unistd.h>
58
59 int main() {
60 char buf[4];
61
62 if (getentropy(buf, 4) == -1) {
63 return 1;
64 }
65
66 return 0;
67 }"
68 . auto/feature
69fi
70
71
72if [ $nxt_found = no ]; then
73
74 # macOS 10.12.
75
76 nxt_feature="getentropy() in sys/random.h"
77 nxt_feature_name=NXT_HAVE_GETENTROPY_SYS_RANDOM
78 nxt_feature_test="#include <unistd.h>
79 #include <sys/random.h>
80
81 int main() {
82 char buf[4];
83
84 if (getentropy(buf, 4) == -1) {
85 return 1;
86 }
87
88 return 0;
89 }"
90 . auto/feature
91fi
92
93
51nxt_feature="ucontext"
52nxt_feature_name=NXT_HAVE_UCONTEXT
53nxt_feature_run=
54nxt_feature_incs=
55nxt_feature_libs=
56nxt_feature_test="#include <stdlib.h>
57 #include <ucontext.h>
58

--- 109 unchanged lines hidden ---
94nxt_feature="ucontext"
95nxt_feature_name=NXT_HAVE_UCONTEXT
96nxt_feature_run=
97nxt_feature_incs=
98nxt_feature_libs=
99nxt_feature_test="#include <stdlib.h>
100 #include <ucontext.h>
101

--- 109 unchanged lines hidden ---