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
commitca0e0e2abfbc4f9a04e37cec5de59a4acd8dde35 (patch)
tree7cdfca3bb6f3e76bc7a51ef45c3a09e251ce477d
parent7f35218581067e5b3449258326a54235d6e10bbc (diff)
downloadtxr-ca0e0e2abfbc4f9a04e37cec5de59a4acd8dde35.tar.gz
txr-ca0e0e2abfbc4f9a04e37cec5de59a4acd8dde35.tar.bz2
txr-ca0e0e2abfbc4f9a04e37cec5de59a4acd8dde35.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;
}
!