From bea0ac3084b1d1326b8e2d6055a6dcb4fa6b2f51 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Fri, 21 Nov 2003 15:04:42 +0000 Subject: [PATCH] Use more config.h defines for more compatibility [r2093] --- ir/tv/strcalc.c | 3 +++ ir/tv/tv.c | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/ir/tv/strcalc.c b/ir/tv/strcalc.c index 2d55f58f3..ba7a63882 100644 --- a/ir/tv/strcalc.c +++ b/ir/tv/strcalc.c @@ -22,6 +22,9 @@ #ifdef HAVE_ALLOCA_H # include #endif +#ifdef HAVE_MALLOC_H +# include +#endif #include /* assertions */ #include /* memset/memcmp */ #include /* output for error messages */ diff --git a/ir/tv/tv.c b/ir/tv/tv.c index 6886f31c7..d7eaea1fb 100644 --- a/ir/tv/tv.c +++ b/ir/tv/tv.c @@ -29,11 +29,16 @@ #include /* assertions */ #include /* atoi() */ #include /* nice things for strings */ +#ifdef HAVE_STRINGS_H #include /* strings.h also includes bsd only function strcasecmp */ +#endif #include #ifdef HAVE_ALLOCA_H # include #endif +#ifdef HAVE_MALLOC_H +# include +#endif #include "tv_t.h" #include "set.h" /* to store tarvals in */ -- 2.20.1