chiark / gitweb /
postgresql: Patch zic.c
[termux-packages] / disabled-packages / postgresql / src-timezone-zic.c.patch
1 diff -u -r ../postgresql-9.6.2/src/timezone/zic.c ./src/timezone/zic.c
2 --- ../postgresql-9.6.2/src/timezone/zic.c      2017-02-06 21:45:25.000000000 +0000
3 +++ ./src/timezone/zic.c        2017-03-06 02:22:14.841276917 +0000
4 @@ -881,8 +881,16 @@
5                                 progname, directory, fromfield, strerror(EPERM));
6                 exit(EXIT_FAILURE);
7         }
8 +#ifdef __ANDROID__
9 +       /*
10 +        * Android does not support hard links starting from 6.0
11 +        * so always use symlinks.
12 +        */
13 +       staysymlink = true;
14 +#else
15         if (staysymlink)
16                 staysymlink = itssymlink(tofield);
17 +#endif
18         if (remove(tofield) == 0)
19                 todirs_made = true;
20         else if (errno != ENOENT)