diff options
author | 2013-08-27 22:11:51 +0200 | |
---|---|---|
committer | 2013-08-28 18:18:29 +0200 | |
commit | a2f8af08ce37b9c0f322a1c3cb596658b0593e7c (patch) | |
tree | b15358683c48bda37d1dfbc0ec2bf9cada5c400e /streamer.c | |
parent | 4457911ae7d38d7bef7abe11bc43d060ba4bf6a2 (diff) |
osx support WIP
Diffstat (limited to 'streamer.c')
-rw-r--r-- | streamer.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -57,6 +57,16 @@ //#define WRITE_DUMP 1 //#define DETECT_PL_LOCK_RC 1 +#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 + #if WRITE_DUMP FILE *out; #endif |