Retro68/gcc/newlib/libc/sys/linux/net/local.h
Wolfgang Thaller ec13cc9ce7 fix newlib
2018-12-29 09:59:36 +01:00

25 lines
1.0 KiB
C

#include <alloca.h>
#include "libc-symbols.h"
# define extend_alloca(buf, len, newlen) \
(__typeof (buf)) ({ size_t __newlen = (newlen); \
char *__newbuf = alloca (__newlen); \
if (__newbuf > (char *)buf) \
if ((char *)buf + len == __newbuf) { \
len += __newlen; \
__newbuf = buf; \
} \
else { \
if (__newbuf + newlen == (char *)buf) \
len += __newlen; \
else \
len = __newlen; \
} \
__newbuf; })
#define __fsetlocking(fp, x) fp
extern const char *_res_opcodes[];
libresolv_hidden_proto (_res_opcodes)