--- modules/legacy/include/opencv2/legacy/blobtrack.hpp.orig 2011-02-15 01:21:25.848273155 +0100 +++ modules/legacy/include/opencv2/legacy/blobtrack.hpp 2011-02-15 01:24:46.965276467 +0100 @@ -56,7 +56,7 @@ #define strdup _strdup #define stricmp _stricmp #endif -#elif defined __GNUC__ +#elif defined __GNUC__ || defined __sun #define cv_stricmp strcasecmp #define cv_strnicmp strncasecmp #else