summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 097fb86)
raw | patch | inline | side by side (parent: 097fb86)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 13 Jun 2007 16:53:32 +0000 (16:53 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 13 Jun 2007 16:53:32 +0000 (16:53 +0000) |
bindings/tcl/Makefile.am | patch | blob | history | |
bindings/tcl/tclrrd.c | patch | blob | history |
index c73a6e2e0b1bf87a3d93becf2bcd82c376ce436d..3e183c681eb58efa04c378df5d026729639a3682 100644 (file)
--- a/bindings/tcl/Makefile.am
+++ b/bindings/tcl/Makefile.am
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)
diff --git a/bindings/tcl/tclrrd.c b/bindings/tcl/tclrrd.c
index a58a6c266ab8327679f86b90ed0b4600dc6ce861..c5a899a1ff1b0550b24c2fa8831d81913d24013c 100644 (file)
--- a/bindings/tcl/tclrrd.c
+++ b/bindings/tcl/tclrrd.c
#include <time.h>
#include <unistd.h>
#include <tcl.h>
+#include <stdlib.h>
#include "../../src/rrd_tool.h"
#include "../../src/rrd_format.h"