From: oetiker Date: Wed, 23 Jul 2008 13:45:15 +0000 (+0000) Subject: build fixes by Guenter Knauf X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=02c8c352049e7898a226cf3aabe65f2694c1a64a;p=rrdtool.git build fixes by Guenter Knauf git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1449 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/netware/Makefile b/netware/Makefile index e8d6a47..104e532 100644 --- a/netware/Makefile +++ b/netware/Makefile @@ -6,7 +6,7 @@ # DESCR = Round Robin Database Tool $(RRD_VERSION_STR) -COPYR = Copyright (c) 1997-2007 by Tobias Oetiker +COPYR = Copyright (c) 1997-2008 by Tobias Oetiker WWWURL = http://www.rrdtool.org/ MTSAFE = YES #SCREEN = $(DESCR) @@ -42,11 +42,11 @@ endif # All library code is statically linked to avoid problems with other lib NLMs. # Edit the path below to point to your libpng sources or set environment var. ifndef LIBPNG -LIBPNG = $(LIBBASE)/libpng-1.2.23 +LIBPNG = $(LIBBASE)/libpng-1.2.29 endif # Edit the path below to point to your freetype sources or set environment var. ifndef LIBFT2 -LIBFT2 = $(LIBBASE)/freetype-2.3.5 +LIBFT2 = $(LIBBASE)/freetype-2.3.7 endif # Edit the path below to point to your libart sources or set environment var. ifndef LIBART @@ -103,14 +103,14 @@ FIXNLMN = fixnlmname #-q # http://www.gknw.net/development/prgtools/awk.zip AWK = awk MV = mv -fv -ifndef ARCBIN + +ifeq ($(ARCEXT),7z) +ARCBIN = 7za a +else ARCBIN = zip -qzr9 ARCEXT = zip -#ARCBIN = 7za a -#ARCEXT = 7z endif - # must be equal to DEBUG or NDEBUG DB = NDEBUG # DB = DEBUG diff --git a/src/rrd_tool.h b/src/rrd_tool.h index 22c404f..4d2d6a8 100644 --- a/src/rrd_tool.h +++ b/src/rrd_tool.h @@ -83,6 +83,10 @@ extern "C" { #include /* for _isnan */ #include /* for chdir */ +#include /* for getpid */ + +#define random rand +#define srandom srand struct tm* localtime_r(const time_t *timep, struct tm* result); char* ctime_r(const time_t *timep, char* result); diff --git a/win32/Makefile b/win32/Makefile index 6e3dc2c..528caf5 100644 --- a/win32/Makefile +++ b/win32/Makefile @@ -6,7 +6,7 @@ # DESCR = Round Robin Database Tool -COPYR = Copyright (c) 1997-2007 by Tobias Oetiker +COPYR = Copyright (c) 1997-2008 by Tobias Oetiker WWWURL = http://www.rrdtool.org/ ICON = $(PROOT)/favicon.ico @@ -33,12 +33,12 @@ endif # All library code is statically linked to avoid problems with other lib DLLs. # Edit the path below to point to your libpng sources or set environment var. ifndef LIBPNG -LIBPNG = $(LIBBASE)/libpng-1.2.23 +LIBPNG = $(LIBBASE)/libpng-1.2.29 endif # Edit the path below to point to your freetype sources or set environment var. ifndef LIBFT2 -#LIBFT2 = $(LIBBASE)/freetype-2.3.5 -LIBFT2 = $(LIBBASE)/../mingw32/freetype-2.3.5 +#LIBFT2 = $(LIBBASE)/freetype-2.3.7 +LIBFT2 = $(LIBBASE)/../mingw32/freetype-2.3.7 endif # Edit the path below to point to your libart sources or set environment var. ifndef LIBART @@ -79,11 +79,12 @@ CP = cp -afv # Here you can find a native Win32 binary of the original awk: # http://www.gknw.net/development/prgtools/awk.zip AWK = awk -ifndef ARCBIN + +ifeq ($(ARCEXT),7z) +ARCBIN = 7za a +else ARCBIN = zip -qzr9 ARCEXT = zip -#ARCBIN = 7za a -#ARCEXT = 7z endif # must be equal to DEBUG or NDEBUG