summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-06-06 06:57:21 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-06-06 06:57:21 -0700
commit97dc422489a3621c6c68b43f1a98f5df947d84d8 (patch)
tree7cdfca3bb6f3e76bc7a51ef45c3a09e251ce477d
parent14c685074ccfa74118d2d8369c01711dcaaf99b5 (diff)
downloadtxr-97dc422489a3621c6c68b43f1a98f5df947d84d8.tar.gz
txr-97dc422489a3621c6c68b43f1a98f5df947d84d8.tar.bz2
txr-97dc422489a3621c6c68b43f1a98f5df947d84d8.zip
configure: detect clockid_t properly.
* configure: test for clockid_t type refers to CLOCK_REALTIME macro also, which comes from <time.h>. But that header isn't included. Since we only care about whether or not we have the type, for the sake of defining it in FFI, and don't use the CLOCK_REALTIME macro anywhere, let's replace it with a 0 constant.
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index a441a7c4..93c9132e 100755
--- a/configure
+++ b/configure
@@ -2868,7 +2868,7 @@ cat > conftest.c <<!
int main(void)
{
- clockid_t cid = CLOCK_REALTIME;
+ clockid_t cid = 0;
return 0;
}
!