diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-05-09 21:15:38 +0200 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-05-09 21:40:33 +0200 |
commit | 23c2f35e6bba40dd601117ebd4f69c09548badbb (patch) | |
tree | f31f07c95b06c5d8cc69d0c3bef425d9a53e031a /plugins | |
parent | 3e0c8ac78e5e275a1067c07d1cf41aaf10b37683 (diff) |
gme: android build fix
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gme/cgme.c | 6 | ||||
-rw-r--r-- | plugins/libmp4ff/mp4ffint.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/plugins/gme/cgme.c b/plugins/gme/cgme.c index 557ec13f..712643e2 100644 --- a/plugins/gme/cgme.c +++ b/plugins/gme/cgme.c @@ -25,6 +25,7 @@ # include "../../config.h" #endif #include <stdio.h> +#include <fcntl.h> #include <stdlib.h> #include <string.h> #include <math.h> @@ -84,8 +85,13 @@ read_gzfile (const char *fname, char **buffer, int *size) { tmp = "/tmp"; } char nm[PATH_MAX]; +#ifdef ANDROID + snprintf (nm, sizeof (nm), "%s/ddbgmeXXXXXX", tmp); + fd = mkstemp (nm); +#else snprintf (nm, sizeof (nm), "%s/ddbgmeXXXXXX.vgz", tmp); fd = mkstemps (nm, 4); +#endif if (fd == -1 || sz != write (fd, buffer, sz)) { trace ("gme read_gzfile: failed to write temp file\n"); if (fd != -1) { diff --git a/plugins/libmp4ff/mp4ffint.h b/plugins/libmp4ff/mp4ffint.h index e0d335b2..dfdf64eb 100644 --- a/plugins/libmp4ff/mp4ffint.h +++ b/plugins/libmp4ff/mp4ffint.h @@ -132,7 +132,7 @@ extern "C" { #define ATOM_SCHI 25 #ifdef HAVE_CONFIG_H -#include "../../config.h" +#include "../../config.h" #endif #if !(defined(_WIN32) || defined(_WIN32_WCE)) |