|
|
6f24f4 |
PORTING
|
|
|
6f24f4 |
=======
|
|
|
6f24f4 |
|
|
|
6f24f4 |
* tpax relies on a modern getdents interface. This interface is invoked
|
|
|
6f24f4 |
via a static inlined wrapper named tpax_getdents(), which is provided
|
|
|
6f24f4 |
by the tpax_getdents_impl.h internal header.
|
|
|
6f24f4 |
|
|
|
6f24f4 |
If your system is not currently covered, you can still easily build
|
|
|
6f24f4 |
and use tpax by (1) providing your own version of tpax_getdents() in
|
|
|
6f24f4 |
a linker archive of any name; and (2) adding -DTPAX_GETDENTS_PORTED
|
|
|
6f24f4 |
to CFLAGS, and the full path to the above archive to LDFLAGS_LAST.
|
|
|
6f24f4 |
|
|
|
6f24f4 |
The wrapper's signature shall then be:
|
|
|
6f24f4 |
|
|
|
6f24f4 |
long tpax_getdents(int, struct dirent *, size_t);
|
|
|
6f24f4 |
|
|
|
6f24f4 |
And your ./configure invocation would then look like:
|
|
|
6f24f4 |
|
|
|
6f24f4 |
CFLAGS=-DTPAX_GETDENTS_PORTED \\
|
|
|
6f24f4 |
LDFLAGS_LAST=/path/to/tpax_getdents_impl.a \\
|
|
|
6f24f4 |
./configure
|