]> git.proxmox.com Git - libgit2.git/commit - CMakeLists.txt
nsec: support NDK's crazy nanoseconds
authorEdward Thomson <ethomson@github.com>
Thu, 25 Feb 2016 16:23:19 +0000 (11:23 -0500)
committerEdward Thomson <ethomson@github.com>
Thu, 25 Feb 2016 16:40:48 +0000 (11:40 -0500)
commit3d6a42d1e14281c564d779e7490d761555d014d4
tree78c9d746d024cb13afe04283ec8d8564f6275cba
parenta4c55069e3481fda0ab6abe82f0c63672eb8b3e9
nsec: support NDK's crazy nanoseconds

Android NDK does not have a `struct timespec` in its `struct stat`
for nanosecond support, instead it has a single nanosecond member inside
the struct stat itself.  We will use that and use a macro to expand to
the `st_mtim` / `st_mtimespec` definition on other systems (much like
the existing `st_mtime` backcompat definition).
CMakeLists.txt
src/fileops.c
src/index.c
src/unix/posix.h
src/win32/win32-compat.h