diff options
author | Milan Crha <mcrha@redhat.com> | 2014-08-25 17:36:19 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2014-08-25 17:36:19 +0800 |
commit | 396e5e82c16d3d81e1e575e02fe05a77149ed0ea (patch) | |
tree | 655b4918d46b56a1a638f6c4d4476c727530ea17 /win32/patches/tzdata.patch | |
parent | 9a8604400946bf0fe5d1fa227fa2524e9baf4fb0 (diff) | |
download | gsoc2013-evolution-396e5e82c16d3d81e1e575e02fe05a77149ed0ea.tar gsoc2013-evolution-396e5e82c16d3d81e1e575e02fe05a77149ed0ea.tar.gz gsoc2013-evolution-396e5e82c16d3d81e1e575e02fe05a77149ed0ea.tar.bz2 gsoc2013-evolution-396e5e82c16d3d81e1e575e02fe05a77149ed0ea.tar.lz gsoc2013-evolution-396e5e82c16d3d81e1e575e02fe05a77149ed0ea.tar.xz gsoc2013-evolution-396e5e82c16d3d81e1e575e02fe05a77149ed0ea.tar.zst gsoc2013-evolution-396e5e82c16d3d81e1e575e02fe05a77149ed0ea.zip |
Add Win32 build scripts into sources
See win32/readme.txt for more information.
Diffstat (limited to 'win32/patches/tzdata.patch')
-rw-r--r-- | win32/patches/tzdata.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/win32/patches/tzdata.patch b/win32/patches/tzdata.patch new file mode 100644 index 0000000000..97963ced99 --- /dev/null +++ b/win32/patches/tzdata.patch @@ -0,0 +1,42 @@ +diff -upr tzdata2014b.old/Makefile tzdata2014b/Makefile +--- tzdata2014b.old/Makefile 2014-03-30 17:49:03 +0000 ++++ tzdata2014b/Makefile 2014-03-30 20:19:53 +0000 +@@ -52,7 +52,7 @@ TOPDIR= /usr/local + # Use an absolute path name for TZDIR unless you're just testing the software. + + TZDIR_BASENAME= zoneinfo +-TZDIR= $(TOPDIR)/etc/$(TZDIR_BASENAME) ++TZDIR= $(TOPDIR)/share/$(TZDIR_BASENAME) + + # Types to try, as an alternative to time_t. int64_t should be first. + TIME_T_ALTERNATIVES= int64_t int32_t uint32_t uint64_t +@@ -223,7 +223,7 @@ GCC_DEBUG_FLAGS = -Dlint -g3 -O3 -fno-co + # before the first Monday in January when a "%V" format is used and January 1 + # falls on a Friday, Saturday, or Sunday. + +-CFLAGS= ++CFLAGS=-DHAVE_SYS_WAIT_H=0 -DHAVE_LINK=0 -DHAVE_SYMLINK=0 -DHAVE_STDINT_H=1 + + # Linker flags. Default to $(LFLAGS) for backwards compatibility + # to tzcode2012h and earlier. +diff -upr tzdata2014b.old/zic.c tzdata2014b/zic.c +--- tzdata2014b.old/zic.c 2014-03-30 17:49:03 +0000 ++++ tzdata2014b/zic.c 2014-03-30 17:52:02 +0000 +@@ -16,7 +16,7 @@ + typedef int_fast64_t zic_t; + #define ZIC_MIN INT_FAST64_MIN + #define ZIC_MAX INT_FAST64_MAX +-#define SCNdZIC SCNdFAST64 ++#define SCNdZIC "lld" + + #ifndef ZIC_MAX_ABBR_LEN_WO_WARN + #define ZIC_MAX_ABBR_LEN_WO_WARN 6 +@@ -2814,7 +2814,7 @@ mkdirs(char *argname) + ** created by some other multiprocessor, so we get + ** to do extra checking. + */ +- if (mkdir(name, MKDIR_UMASK) != 0) { ++ if (mkdir(name) != 0) { + const char *e = strerror(errno); + + if (errno != EEXIST || !itsdir(name)) { |