aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunk@stsci.edu>2010-02-25 14:50:47 -0500
committerJoseph Hunkeler <jhunk@stsci.edu>2010-02-25 14:50:47 -0500
commit86610ce48b8adb62ae0d60b5ecc787b5bb29e952 (patch)
tree3468d2db20ce2184ae36bbcd2549eb9841e71d07
parent14cd7204903b32ff0eabdee687a39844e7276a0e (diff)
downloadNetNuke-master.tar.gz
Linux compat with CLOCKS_PER_SECHEADmaster
Added missing log.c to Makefile.linux
-rw-r--r--Makefile.linux2
-rw-r--r--log.c3
2 files changed, 4 insertions, 1 deletions
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 <string.h>
#include <stdarg.h>
#include <time.h>
+#ifndef CLK_TCK
+ #define CLK_TCK CLOCKS_PER_SEC
+#endif
#include <ctype.h>
FILE* loutfile;