diff options
| author | Austin Foxley <austinf@cetoncorp.com> | 2009-11-22 11:46:31 -0800 | 
|---|---|---|
| committer | Austin Foxley <austinf@cetoncorp.com> | 2009-11-22 11:51:37 -0800 | 
| commit | f757db2d319ccc5f7034165046fb2bb58901afb1 (patch) | |
| tree | 7dc465febb3a802d3f0e8856fcda856b13b04c0a /include/libc-internal.h | |
| parent | 76c0c0ed99f74b8a5965be6e1c6a0c0e7a72513c (diff) | |
| parent | b71274eebd68b7c68ab95c856f8075bdf4524cd7 (diff) | |
| download | uClibc-alpine-f757db2d319ccc5f7034165046fb2bb58901afb1.tar.bz2 uClibc-alpine-f757db2d319ccc5f7034165046fb2bb58901afb1.tar.xz  | |
Merge remote branch 'origin/master' into nptl_merge
Conflicts:
	Rules.mak
	libc/misc/sysvipc/msgq.c
	test/Rules.mak
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'include/libc-internal.h')
| -rw-r--r-- | include/libc-internal.h | 38 | 
1 files changed, 8 insertions, 30 deletions
diff --git a/include/libc-internal.h b/include/libc-internal.h index 33956d8b1..443b1fc50 100644 --- a/include/libc-internal.h +++ b/include/libc-internal.h @@ -67,36 +67,14 @@ extern const char *__uclibc_progname attribute_hidden;  # endif /* IS_IN_libc */ -/* #include <alloca.h> */ -#include <bits/stackinfo.h> -#if defined(_STACK_GROWS_DOWN) -# define extend_alloca(buf, len, newlen) \ -  (__typeof (buf)) ({ size_t __newlen = (newlen);			      \ -		      char *__newbuf = alloca (__newlen);		      \ -		      if (__newbuf + __newlen == (char *) buf)		      \ -			len += __newlen;				      \ -		      else						      \ -			len = __newlen;					      \ -		      __newbuf; }) -#elif defined(_STACK_GROWS_UP) -# define extend_alloca(buf, len, newlen) \ -  (__typeof (buf)) ({ size_t __newlen = (newlen);			      \ -		      char *__newbuf = alloca (__newlen);		      \ -		      char *__buf = (buf);				      \ -		      if (__buf + __newlen == __newbuf)			      \ -			{						      \ -			  len += __newlen;				      \ -			  __newbuf = __buf;				      \ -			}						      \ -		      else						      \ -			len = __newlen;					      \ -		      __newbuf; }) -#else -# warning unknown stack -# define extend_alloca(buf, len, newlen) \ -  alloca (((len) = (newlen))) -#endif -  #endif /* __ASSEMBLER__ */ +/* Some people like to build up uClibc with *-elf toolchains, so + * a little grease here until we drop '#ifdef __linux__' checks + * from our source code. + */ +#ifndef __linux__ +# define __linux__ 1 +#endif +  #endif /* _LIBC_INTERNAL_H */  | 
