Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Unified Diff: patches/21_fix_build_with_new_glibc.patch

Issue 2195013002: libmtp: fix build error with glibc 2.23 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libmtp@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: patches/21_fix_build_with_new_glibc.patch
diff --git a/patches/21_fix_build_with_new_glibc.patch b/patches/21_fix_build_with_new_glibc.patch
new file mode 100644
index 0000000000000000000000000000000000000000..afd9ea14d551b0a786e3da8823a8e4587d351579
--- /dev/null
+++ b/patches/21_fix_build_with_new_glibc.patch
@@ -0,0 +1,15 @@
+diff --git a/src/util.h b/src/util.h
+index 64c2d04..02be5bf 100644
+--- a/src/util.h
++++ b/src/util.h
+@@ -23,6 +23,10 @@
+ #ifndef __MTP__UTIL__H
+ #define __MTP__UTIL__H
+
++#ifdef HAVE_CONFIG_H
++#include "config.h"
++#endif
++
+ void data_dump(FILE *f, void *buf, uint32_t nbytes);
+ void data_dump_ascii (FILE *f, void *buf, uint32_t n, uint32_t dump_boundry);
+ #ifndef HAVE_STRNDUP
« no previous file with comments | « no previous file | src/util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698