From 571fa65a6f3cf1c0a11d8c3b46440fe8457fa6fb Mon Sep 17 00:00:00 2001 From: Steve Bennett <steveb@workware.net.au> Date: Sun, 24 Jan 2010 11:12:50 +1000 Subject: Build improvements, bug fixes and compiler warnings Remove unimplemented 'after restart|expire' from eventloop Allow libjim to be build as a shared library On some platforms, regex.h needs stdlib.h first Use ualarm() only for times < 1 second Fix warnings found by clang static analyser *: printf/syslog %m isn't portable *: some variables set but never read *: some possible null pointer references (although mostly impossible) *: also minor fixes to jim unit tests Fix 'syslog -options <n>' Must null terminate readlink() result --- jim-regexp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'jim-regexp.c') diff --git a/jim-regexp.c b/jim-regexp.c index b8a7585..e161d37 100644 --- a/jim-regexp.c +++ b/jim-regexp.c @@ -47,8 +47,9 @@ * express or implied warranty. */ -#include <regex.h> +#include <stdlib.h> #include <string.h> +#include <regex.h> #define JIM_EXTENSION #include "jim.h" -- cgit v1.1