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

Unified Diff: base/third_party/xdg_mime/compile.patch

Issue 113168: Add xdg mime support on Linux. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | « base/third_party/xdg_mime/README.chromium ('k') | base/third_party/xdg_mime/xdgmime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/third_party/xdg_mime/compile.patch
===================================================================
--- base/third_party/xdg_mime/compile.patch (revision 0)
+++ base/third_party/xdg_mime/compile.patch (revision 0)
@@ -0,0 +1,27 @@
+--- a/xdgmimecache.c
++++ b/xdgmimecache.c
+@@ -40,6 +40,8 @@
+
+ #include <netinet/in.h> /* for ntohl/ntohs */
+
++#define HAVE_MMAP 1
++
+ #ifdef HAVE_MMAP
+ #include <sys/mman.h>
+ #else
+@@ -1000,5 +1002,3 @@
+ dump_glob_node (cache, offset + 20 * j, 0);
+ }
+ }
+-
+-
+--- a/xdgmimeglob.c
++++ b/xdgmimeglob.c
+@@ -375,7 +375,6 @@
+ int i, n;
+ MimeWeight mimes[10];
+ int n_mimes = 10;
+- xdg_unichar_t *ucs4;
+ int len;
+
+ /* First, check the literals */
« no previous file with comments | « base/third_party/xdg_mime/README.chromium ('k') | base/third_party/xdg_mime/xdgmime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698