Somehow these changes didn't get committed.
Change-Id: Ida7b706de56d95c8fb22d2708711a4d68c41ddaa
case ALISP_OBJ_CONS: return "cons";
default: assert(0);
}
+ return 0; /* make compiler happy */
}
static void print_obj_lists(struct alisp_instance *instance, snd_output_t *out)
*
*/
+#define _GNU_SOURCE
#include "list.h"
#include "local.h"
#else
#ifdef HAVE_LIBDL
if (name == NULL) {
- static const char * self = NULL;
- if (self == NULL) {
- Dl_info dlinfo;
- if (dladdr(snd_dlopen, &dlinfo) > 0)
- self = dlinfo.dli_fname;
- }
- name = self;
+#ifdef ANDROID
+ return RTLD_DEFAULT;
+#else
+ Dl_info dlinfo;
+ if (dladdr(snd_dlopen, &dlinfo) > 0)
+ name = dlinfo.dli_fname;
+#endif
}
#endif
#endif
return 0;
#endif
#ifdef HAVE_LIBDL
+#ifdef ANDROID
+ if (handle == RTLD_DEFAULT)
+ return 0;
+#endif
return dlclose(handle);
#else
return 0;
#include <stdarg.h>
#include <signal.h>
#include <sys/poll.h>
-#include <sys/shm.h>
#include <sys/mman.h>
#include <limits.h>
#include "pcm_local.h"
*
*/
-#include <sys/shm.h>
#include <sys/ioctl.h>
#include <limits.h>
#include "pcm_local.h"
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
-#include <sys/shm.h>
#include "pcm_local.h"
#include "../control/control_local.h"
#include "../timer/timer_local.h"
#include <string.h>
#include <sys/poll.h>
#include <sys/mman.h>
+#ifndef ANDROID
#include <sys/shm.h>
+#endif
#include "pcm_local.h"
size_t page_size(void)
}
i->addr = ptr;
break;
+#ifndef ANDROID
case SND_PCM_AREA_SHM:
if (i->u.shm.shmid < 0) {
int id;
}
i->addr = ptr;
break;
+#endif
case SND_PCM_AREA_LOCAL:
ptr = malloc(size);
if (ptr == NULL) {
}
errno = 0;
break;
+#ifndef ANDROID
case SND_PCM_AREA_SHM:
if (i->u.shm.area) {
snd_shm_area_destroy(i->u.shm.area);
}
}
break;
+#endif
case SND_PCM_AREA_LOCAL:
free(i->addr);
break;
#include <byteswap.h>
#include <limits.h>
-#include <sys/shm.h>
#include "pcm_local.h"
#include "pcm_plugin.h"
*/
-#include <sys/shm.h>
#include <limits.h>
#include "pcm_local.h"
#include "pcm_plugin.h"
#include <math.h>
#include <sys/socket.h>
#include <sys/poll.h>
-#include <sys/shm.h>
#include <pthread.h>
#include "pcm_local.h"