Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
1.0.10
-
None
-
FreeBSD 13.0 amd64
-
3.8.12
Description
Compilation fails with the following:
mariadb/mariadb_connection.c:655:27: error: use of undeclared identifier 'CLOCK_MONOTONIC_RAW'
clock_gettime(CLOCK_MONOTONIC_RAW, &self->last_used);
A google search found the same error in a similar environment in a completely different project:
https://github.com/basil00/reqrypt/issues/20
The solution there was to add the following:
#ifndef CLOCK_MONOTONIC_RAW
#define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC
#endif
I tested minor version (ie 1.0.x) back to 1.0.0 and had the same result with each version.