From 86610ce48b8adb62ae0d60b5ecc787b5bb29e952 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 25 Feb 2010 19:50:47 +0000 Subject: Linux compat with CLOCKS_PER_SEC Added missing log.c to Makefile.linux --- Makefile.linux | 2 +- log.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.linux b/Makefile.linux index 7650dfe..8ba780a 100644 --- a/Makefile.linux +++ b/Makefile.linux @@ -4,7 +4,7 @@ LFLAGS=-lutil -ltermcap PACKAGE=netnuke all: - cc -o $(PACKAGE) $(DEFINES) $(CFLAGS) $(LFLAGS) netnuke.c human_readable.c + cc -o $(PACKAGE) $(DEFINES) $(CFLAGS) $(LFLAGS) netnuke.c human_readable.c log.c strip netnuke clean: diff --git a/log.c b/log.c index 2ee24b6..7b903dc 100644 --- a/log.c +++ b/log.c @@ -23,6 +23,9 @@ #include #include #include +#ifndef CLK_TCK + #define CLK_TCK CLOCKS_PER_SEC +#endif #include FILE* loutfile; -- cgit