diff -ur openjpeg-2.3.1.orig/src/lib/openjpip/imgsock_manager.c openjpeg-2.3.1/src/lib/openjpip/imgsock_manager.c --- openjpeg-2.3.1.orig/src/lib/openjpip/imgsock_manager.c 2019-04-02 07:45:15.000000000 +0000 +++ openjpeg-2.3.1/src/lib/openjpip/imgsock_manager.c 2019-06-10 19:29:43.372398963 +0000 @@ -30,6 +30,10 @@ #include #include +#if defined(__sun) +/* for strncasecmp() */ +# include +#endif #include #include "imgsock_manager.h" #if _WIN32