summaryrefslogtreecommitdiffhomepage
path: root/PORTING
blob: 90dccc1e704288f84492a1ea2cedca138f617f3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
PORTING
=======

* tpax relies on a modern getdents interface. This interface is invoked
  via a static inlined wrapper named tpax_getdents(), which is provided
  by the tpax_getdents_impl.h internal header.

  If your system is not currently covered, you can still easily build
  and use tpax by (1) providing your own version of tpax_getdents() in
  a linker archive of any name; and (2) adding -DTPAX_GETDENTS_PORTED
  to CFLAGS, and the full path to the above archive to LDFLAGS_LAST.

  The wrapper's signature shall then be:

  long tpax_getdents(int, struct dirent *, size_t);

  And your ./configure invocation would then look like:

  CFLAGS=-DTPAX_GETDENTS_PORTED                   \\
	LDFLAGS_LAST=/path/to/tpax_getdents_impl.a \\
	./configure