diff options
author | Milan P. Stanić <mps@arvanta.net> | 2020-04-29 22:34:02 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-04-29 14:42:38 -0600 |
commit | 8171778c835b6be517c314cf23dd1f5ae061a117 (patch) | |
tree | 8399e1f5cbf6f7441d07d70b16fcfb78de5c308c /configure | |
parent | df7565665fe7f2663cedda39533609aa3a142ec8 (diff) | |
download | liburing-8171778c835b6be517c314cf23dd1f5ae061a117.tar.gz liburing-8171778c835b6be517c314cf23dd1f5ae061a117.tar.bz2 |
fix build on musl libc
Trying to build liburing on musl yields an error:
make[1]: Entering directory '/work/devel/liburing/src'
CC setup.ol
CC queue.ol
CC syscall.ol
In file included from syscall.c:9:
include/liburing/compat.h:6:2: error: unknown type name 'int64_t'
6 | int64_t tv_sec;
| ^~~~~~~
make[1]: *** [Makefile:43: syscall.ol] Error 1
make[1]: Leaving directory '/work/devel/liburing/src'
make: *** [Makefile:12: all] Error 2
Ensure that compat.h includes stdint.h.
Signed-off-by: Milan P. Stanić <mps@arvanta.net>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -301,6 +301,8 @@ EOF fi if test "$__kernel_timespec" != "yes"; then cat >> $compat_h << EOF +#include <stdint.h> + struct __kernel_timespec { int64_t tv_sec; long long tv_nsec; |