Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix Android NDK compilation error
  • Loading branch information
Ben Efrati authored and Ben Efrati committed Nov 1, 2015
1 parent cf0afc3 commit 112a298
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/tvheadend.h
@@ -1,4 +1,4 @@
/*
/*
* Tvheadend - structures
* Copyright (C) 2007 Andreas Öman
*
Expand Down Expand Up @@ -34,6 +34,17 @@
#include <limits.h>
#if ENABLE_LOCKOWNER || ENABLE_ANDROID
#include <sys/syscall.h>
#if ENABLE_ANDROID
#ifndef strdupa
#define strdupa(s) \
({ \
const char *__old = (s); \
size_t __len = strlen(__old) + 1; \
char *__new = (char *) alloca(__len); \
(char *) memcpy(__new, __old, __len); \
})
#endif
#endif
#endif
#include "queue.h"
#include "avg.h"
Expand Down

0 comments on commit 112a298

Please sign in to comment.