diff options
| author | Junio C Hamano <gitster@pobox.com> | 2026-04-08 10:19:17 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-04-08 10:19:17 -0700 |
| commit | 4fee6ff3b23321b55073ca2d13c4e2aa6adaea65 (patch) | |
| tree | 097114e50b0fea8c224986e29d070b99a7904370 /reftable/reftable-system.h | |
| parent | 0c0cbd8ab7c8e1884d6f0bdf1f36f5f9d4732553 (diff) | |
| parent | 87e4eee3f94ec261a92a76d06261b227b00de461 (diff) | |
| download | git-4fee6ff3b23321b55073ca2d13c4e2aa6adaea65.tar.xz | |
Merge branch 'ps/reftable-portability'
Update reftable library part with what is used in libgit2 to improve
portability to different target codebases and platforms.
* ps/reftable-portability:
reftable/system: add abstraction to mmap files
reftable/system: add abstraction to retrieve time in milliseconds
reftable/fsck: use REFTABLE_UNUSED instead of UNUSED
reftable/stack: provide fsync(3p) via system header
reftable: introduce "reftable-system.h" header
Diffstat (limited to 'reftable/reftable-system.h')
| -rw-r--r-- | reftable/reftable-system.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/reftable/reftable-system.h b/reftable/reftable-system.h new file mode 100644 index 0000000000..76f3e33e90 --- /dev/null +++ b/reftable/reftable-system.h @@ -0,0 +1,18 @@ +#ifndef REFTABLE_SYSTEM_H +#define REFTABLE_SYSTEM_H + +/* + * This header defines the platform-specific bits required to compile the + * reftable library. It should provide an environment that bridges over the + * gaps between POSIX and your system, as well as the zlib interfaces. This + * header is expected to be changed by the individual project. + */ + +#define MINGW_DONT_HANDLE_IN_USE_ERROR +#include "compat/posix.h" +#include "compat/zlib-compat.h" + +int reftable_fsync(int fd); +#define fsync(fd) reftable_fsync(fd) + +#endif |
