libhdf5: add package
[termux-packages] / packages / git / git.patch
1 Fix ST_CTIME_NSEC and ST_MTIME_NSEC macros on Android.
2
3 diff -u -r ../git-1.8.5.3/git-compat-util.h ./git-compat-util.h
4 --- ../git-1.8.5.3/git-compat-util.h 2014-01-14 18:10:09.000000000 +0100
5 +++ ./git-compat-util.h 2014-01-22 13:07:19.000000000 +0100
6 @@ -657,6 +657,10 @@
7 # define FORCE_DIR_SET_GID 0
8 #endif
9
10 +#ifdef __ANDROID__
11 +#define ST_CTIME_NSEC(st) ((unsigned int)((st).st_ctime_nsec))
12 +#define ST_MTIME_NSEC(st) ((unsigned int)((st).st_mtime_nsec))
13 +#else
14 #ifdef NO_NSEC
15 #undef USE_NSEC
16 #define ST_CTIME_NSEC(st) 0
17 @@ -670,6 +674,7 @@
18 #define ST_MTIME_NSEC(st) ((unsigned int)((st).st_mtim.tv_nsec))
19 #endif
20 #endif
21 +#endif
22
23 #ifdef UNRELIABLE_FSTAT
24 #define fstat_is_reliable() 0
25