Hi, I had successfully built and installed the library only Debian 13 machine, but when trying to include the thtk/thtk.h header I got the following errors:
In file included from /usr/local/include/thtk/thtk.h:32,
from main.c:3:
/usr/local/include/thtk/io.h:46:13: error: unknown type name ‘ssize_t’; did you mean ‘size_t’?
46 | THTK_EXPORT ssize_t thtk_io_read(thtk_io_t* io, void* buf, size_t count, thtk_error_t** error);
| ^~~~~~~
| size_t
/usr/local/include/thtk/io.h:49:13: error: unknown type name ‘ssize_t’; did you mean ‘size_t’?
49 | THTK_EXPORT ssize_t thtk_io_write(thtk_io_t* io, const void* buf, size_t count, thtk_error_t** error);
| ^~~~~~~
| size_t
/usr/local/include/thtk/io.h:51:13: error: unknown type name ‘off_t’
51 | THTK_EXPORT off_t thtk_io_seek(thtk_io_t* io, off_t offset, int whence, thtk_error_t** error);
| ^~~~~
/usr/local/include/thtk/io.h:51:47: error: unknown type name ‘off_t’
51 | THTK_EXPORT off_t thtk_io_seek(thtk_io_t* io, off_t offset, int whence, thtk_error_t** error);
| ^~~~~
/usr/local/include/thtk/io.h:54:55: error: unknown type name ‘off_t’
54 | THTK_EXPORT unsigned char* thtk_io_map(thtk_io_t* io, off_t offset, size_t count, thtk_error_t** error);
| ^~~~~
/usr/local/include/thtk/io.h:61:13: error: unknown type name ‘ssize_t’; did you mean ‘size_t’?
61 | THTK_EXPORT ssize_t thtk_io_pread(thtk_io_t* io, void* buf, size_t count, off_t offset, thtk_error_t** error);
| ^~~~~~~
| size_t
/usr/local/include/thtk/io.h:61:75: error: unknown type name ‘off_t’
61 | THTK_EXPORT ssize_t thtk_io_pread(thtk_io_t* io, void* buf, size_t count, off_t offset, thtk_error_t** error);
| ^~~~~
/usr/local/include/thtk/io.h:64:13: error: unknown type name ‘ssize_t’; did you mean ‘size_t’?
64 | THTK_EXPORT ssize_t thtk_io_pwrite(thtk_io_t* io, const void* buf, size_t count, off_t offset, thtk_error_t** error);
| ^~~~~~~
| size_t
/usr/local/include/thtk/io.h:64:82: error: unknown type name ‘off_t’
64 | THTK_EXPORT ssize_t thtk_io_pwrite(thtk_io_t* io, const void* buf, size_t count, off_t offset, thtk_error_t** error);
| ^~~~~
In file included from /usr/local/include/thtk/thtk.h:35:
/usr/local/include/thtk/dat.h:92:13: error: unknown type name ‘ssize_t’; did you mean ‘size_t’?
92 | THTK_EXPORT ssize_t thdat_entry_count(
| ^~~~~~~
| size_t
/usr/local/include/thtk/dat.h:97:13: error: unknown type name ‘ssize_t’; did you mean ‘size_t’?
97 | THTK_EXPORT ssize_t thdat_entry_by_name(
| ^~~~~~~
| size_t
/usr/local/include/thtk/dat.h:103:13: error: unknown type name ‘ssize_t’; did you mean ‘size_t’?
103 | THTK_EXPORT ssize_t thdat_entry_by_glob(
| ^~~~~~~
| size_t
/usr/local/include/thtk/dat.h:124:13: error: unknown type name ‘ssize_t’; did you mean ‘size_t’?
124 | THTK_EXPORT ssize_t thdat_entry_get_size(
| ^~~~~~~
| size_t
/usr/local/include/thtk/dat.h:130:13: error: unknown type name ‘ssize_t’; did you mean ‘size_t’?
130 | THTK_EXPORT ssize_t thdat_entry_get_zsize(
| ^~~~~~~
| size_t
/usr/local/include/thtk/dat.h:140:13: error: unknown type name ‘ssize_t’; did you mean ‘size_t’?
140 | THTK_EXPORT ssize_t thdat_entry_write_data(
| ^~~~~~~
| size_t
/usr/local/include/thtk/dat.h:150:13: error: unknown type name ‘ssize_t’; did you mean ‘size_t’?
150 | THTK_EXPORT ssize_t thdat_entry_read_data(
| ^~~~~~~
| size_t
Hi, I had successfully built and installed the library only Debian 13 machine, but when trying to include the
thtk/thtk.hheader I got the following errors:Of course, including
<sys/types.h>works on my end but can you fix this for the library?Thank you