Skip to content

Commit a6c50b7

Browse files
committed
config: make clock_gettime() check work
The clock_gettime() function is provided by time.h, but the check includes sched.h. Additionally, the function expects two arguments, but none are given. This commit fixes both issues, making the check actually work. Signed-off-by: Zurab Kvachadze <[email protected]>
1 parent 26f0687 commit a6c50b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ ngx_feature_test="iconv_open(NULL, NULL);"
127127
ngx_feature="clock_gettime()"
128128
ngx_feature_name="NGX_HAVE_CLOCK_GETTIME"
129129
ngx_feature_run=no
130-
ngx_feature_incs="#include <sched.h>"
130+
ngx_feature_incs="#include <time.h>"
131131
ngx_feature_path=
132132
ngx_feature_libs=
133-
ngx_feature_test="clock_gettime()"
133+
ngx_feature_test="clockid_t c; clock_gettime(c, NULL)"
134134
. auto/feature
135135

136136
if [ $ngx_found != yes ]; then

0 commit comments

Comments
 (0)