diff options
Diffstat (limited to 'main/exiv2/fix_libc_definitions.patch')
-rw-r--r-- | main/exiv2/fix_libc_definitions.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/main/exiv2/fix_libc_definitions.patch b/main/exiv2/fix_libc_definitions.patch new file mode 100644 index 0000000000..1a58b37c36 --- /dev/null +++ b/main/exiv2/fix_libc_definitions.patch @@ -0,0 +1,11 @@ +--- a/src/futils.cpp ++++ b/src/futils.cpp +@@ -333,7 +333,7 @@ + #ifdef EXV_HAVE_STRERROR_R + const size_t n = 1024; + // _GNU_SOURCE: See Debian bug #485135 +-# if defined EXV_STRERROR_R_CHAR_P && defined _GNU_SOURCE ++# if defined EXV_STRERROR_R_CHAR_P && defined _GNU_SOURCE && defined GLIBC + char *buf = 0; + char buf2[n]; + std::memset(buf2, 0x0, n); |