Browse Source

fix compile error on Darwin

Waldemar Brodkorb 10 years ago
parent
commit
cab30e5367
2 changed files with 12 additions and 2 deletions
  1. 2 2
      package/tzdata/patches/patch-Makefile
  2. 10 0
      package/tzdata/patches/patch-localtime_c

+ 2 - 2
package/tzdata/patches/patch-Makefile

@@ -1,5 +1,5 @@
 --- w-tzdata-2013d-1.orig/Makefile	2013-07-05 16:38:01.000000000 +0200
-+++ w-tzdata-2013d-1/Makefile	2013-08-14 12:58:49.000000000 +0200
++++ w-tzdata-2013d-1/Makefile	2013-10-04 11:29:22.000000000 +0200
 @@ -231,7 +231,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.
@@ -18,7 +18,7 @@
  
  # The name of a Posix-compliant `awk' on your system.
  AWK=		awk
-@@ -330,7 +330,7 @@ ENCHILADA=	$(COMMON) $(DOCS) $(SOURCES)
+@@ -330,7 +330,7 @@ ENCHILADA=	$(COMMON) $(DOCS) $(SOURCES) 
  
  SHELL=		/bin/sh
  

+ 10 - 0
package/tzdata/patches/patch-localtime_c

@@ -0,0 +1,10 @@
+--- w-tzdata-2013d-1.orig/localtime.c	2013-05-28 06:26:18.000000000 +0200
++++ w-tzdata-2013d-1/localtime.c	2013-10-04 11:35:35.000000000 +0200
+@@ -10,6 +10,7 @@
+ 
+ /*LINTLIBRARY*/
+ 
++#include <stdint.h>
+ #include "private.h"
+ #include "tzfile.h"
+ #include "fcntl.h"