diff options
-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)) |