From 6394b3f987cfafdb49bb73a7381b0fbf234bc556 Mon Sep 17 00:00:00 2001 From: Ralph Irving Date: Sat, 7 Jan 2023 17:06:23 +0000 Subject: [PATCH] Use local strcasestr function for solaris in addition to windows. Increase squeezelite revision to 1422. --- squeezelite.h | 5 +++-- utils.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/squeezelite.h b/squeezelite.h index 5a4774f5..791a712b 100644 --- a/squeezelite.h +++ b/squeezelite.h @@ -26,7 +26,7 @@ #define MAJOR_VERSION "1.9" #define MINOR_VERSION "9" -#define MICRO_VERSION "1421" +#define MICRO_VERSION "1422" #if defined(CUSTOM_VERSION) #define VERSION "v" MAJOR_VERSION "." MINOR_VERSION "-" MICRO_VERSION STR(CUSTOM_VERSION) @@ -289,6 +289,7 @@ #include #include #if SUN +#include #include #endif /* SUN */ @@ -456,7 +457,7 @@ void logprint(const char *fmt, ...); // utils.c (non logging) typedef enum { EVENT_TIMEOUT = 0, EVENT_READ, EVENT_WAKE } event_type; -#if WIN && USE_SSL +#if WIN || SUN char* strcasestr(const char *haystack, const char *needle); #endif diff --git a/utils.c b/utils.c index 50d86a1b..8dbd3ba5 100644 --- a/utils.c +++ b/utils.c @@ -499,7 +499,7 @@ void touch_memory(u8_t *buf, size_t size) { } #endif -#if WIN +#if WIN || SUN char *strcasestr(const char *haystack, const char *needle) { size_t length_needle; size_t length_haystack;