X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=configure;h=a24e3eff7fd4985ba66fe4a8a0aedcc6d3f14088;hb=81b3c86f086cb2340d1c5596202a307487216b21;hp=2851f54d951a983c2c2467b7188989b0b30eabea;hpb=34fbdab48d2399e8d11a6f40353ba00d2edf9151;p=fio.git diff --git a/configure b/configure index 2851f54d..a24e3eff 100755 --- a/configure +++ b/configure @@ -793,6 +793,25 @@ EOF fi echo "CLOCK_MONOTONIC_PRECISE $clock_monotonic_precise" +########################################## +# clockid_t probe +clockid_t="no" +cat > $TMPC << EOF +#include +#include +#include +int main(int argc, char **argv) +{ + clockid_t cid; + memset(&cid, 0, sizeof(cid)); + return clock_gettime(cid, NULL); +} +EOF +if compile_prog "" "$LIBS" "clockid_t"; then + clockid_t="yes" +fi +echo "clockid_t $clockid_t" + ########################################## # gettimeofday() probe gettimeofday="no" @@ -1722,6 +1741,9 @@ fi if test "$clock_monotonic_precise" = "yes" ; then output_sym "CONFIG_CLOCK_MONOTONIC_PRECISE" fi +if test "$clockid_t" = "yes"; then + output_sym "CONFIG_CLOCKID_T" +fi if test "$gettimeofday" = "yes" ; then output_sym "CONFIG_GETTIMEOFDAY" fi