termux-packages/packages/postgresql/src-timezone-zic.c.patch.beforehostbuild

30 lines
764 B
Plaintext
Raw Normal View History

2020-11-22 16:59:48 +01:00
diff -uNr postgresql-13.1/src/timezone/zic.c postgresql-13.1.mod/src/timezone/zic.c
--- postgresql-13.1/src/timezone/zic.c 2020-11-09 22:24:30.000000000 +0000
+++ postgresql-13.1.mod/src/timezone/zic.c 2020-11-22 15:38:54.515342643 +0000
@@ -19,6 +19,12 @@
#include "private.h"
#include "tzfile.h"
+/*
+ * Avoid the qsort->pg_qsort define to more easily build
+ * a native patched zic tool.
+ */
+#undef qsort
+
2017-11-11 19:35:27 +01:00
#define ZIC_VERSION_PRE_2013 '2'
#define ZIC_VERSION '3'
2020-11-22 16:59:48 +01:00
@@ -1015,8 +1021,12 @@
progname, directory, target, strerror(EPERM));
2017-03-07 01:39:26 +01:00
exit(EXIT_FAILURE);
}
+#if 1
2020-11-22 16:59:48 +01:00
+ staysymlink = true;
2017-03-07 01:39:26 +01:00
+#else
if (staysymlink)
2020-11-22 16:59:48 +01:00
staysymlink = itssymlink(linkname);
2017-03-07 01:39:26 +01:00
+#endif
2020-11-22 16:59:48 +01:00
if (remove(linkname) == 0)
linkdirs_made = true;
2017-03-07 01:39:26 +01:00
else if (errno != ENOENT)