File optipng-libpng16.patch of Package optipng
Index: optipng-0.7.4/src/opngreduc/opngreduc.c =================================================================== --- optipng-0.7.4.orig/src/opngreduc/opngreduc.c +++ optipng-0.7.4/src/opngreduc/opngreduc.c @@ -20,6 +20,8 @@ #include "opngreduc.h" +#include <string.h> + #ifndef OPNG_ASSERT #include <assert.h> #define OPNG_ASSERT(cond) assert(cond) Index: optipng-0.7.4/src/pngxtern/pngxmem.c =================================================================== --- optipng-0.7.4.orig/src/pngxtern/pngxmem.c +++ optipng-0.7.4/src/pngxtern/pngxmem.c @@ -8,6 +8,7 @@ #include "pngxutil.h" +#include <string.h> #ifdef PNG_INFO_IMAGE_SUPPORTED