runsv: Use 64 prefix syscall if we have to
No binary (build failed)
—
(log yok)
| @@ -55,7 +55,14 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
| * typically requiring -lrt. We just skip all this mess */ | |
| static void gettimeofday_ns(struct timespec *ts) | |
| { | |
| + | #if defined(__NR_clock_gettime) |
| syscall(__NR_clock_gettime, CLOCK_REALTIME, ts); | |
| + | #elif __TIMESIZE == 64 |
| + | syscall(__NR_clock_gettime64, CLOCK_REALTIME, ts); |
| + | #else |
| + | # error "We currently don't support architectures without " \ |
| + | "the __NR_clock_gettime syscall and 32-bit time_t" |
| + | #endif |
| } | |
| #else | |
| static void gettimeofday_ns(struct timespec *ts) | |