Code

fixed tcl includes
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Wed, 13 Jun 2007 16:53:32 +0000 (16:53 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Wed, 13 Jun 2007 16:53:32 +0000 (16:53 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1119 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/bindings/tcl/Makefile.am
program/bindings/tcl/tclrrd.c

index c73a6e2e0b1bf87a3d93becf2bcd82c376ce436d..3e183c681eb58efa04c378df5d026729639a3682 100644 (file)
@@ -12,11 +12,12 @@ TCL_SHLIB_SUFFIX = @TCL_SHLIB_SUFFIX@
 TCL_PACKAGE_PATH = @TCL_PACKAGE_PATH@
 TCL_LD_SEARCH_FLAGS = @TCL_LD_SEARCH_FLAGS@
 TCL_STUB_LIB_SPEC = @TCL_STUB_LIB_SPEC@
+TCL_INC_DIR = @TCL_INC_DIR@
 
 CLEANFILES = tclrrd.o tclrrd.so
 
 SRC_DIR            = $(top_srcdir)/src
-AM_CPPFLAGS        = -I$(TCL_PREFIX)/include -I$(SRC_DIR) -DUSE_TCL_STUBS
+AM_CPPFLAGS        = -I$(TCL_INC_DIR) -I$(SRC_DIR) -DUSE_TCL_STUBS
 LIBDIRS            = -L$(top_builddir)/src/.libs -L$(top_builddir)/src -L$(libdir)
 LIB_RUNTIME_DIR    = $(libdir)
 
index a58a6c266ab8327679f86b90ed0b4600dc6ce861..c5a899a1ff1b0550b24c2fa8831d81913d24013c 100644 (file)
@@ -18,6 +18,7 @@
 #include <time.h>
 #include <unistd.h>
 #include <tcl.h>
+#include <stdlib.h>
 #include "../../src/rrd_tool.h"
 #include "../../src/rrd_format.h"