005-fix_internal_function_definition.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --- a/libc/sysdeps/linux/i386/bits/uClibc_arch_features.h
  2. +++ b/libc/sysdeps/linux/i386/bits/uClibc_arch_features.h
  3. @@ -42,6 +42,8 @@
  4. /* define if target supports IEEE signed zero floats */
  5. #define __UCLIBC_HAVE_SIGNED_ZERO__
  6. +#if defined _LIBC
  7. #define internal_function __attribute__ ((regparm (3), stdcall))
  8. +#endif
  9. #endif /* _BITS_UCLIBC_ARCH_FEATURES_H */
  10. --- a/include/libc-symbols.h
  11. +++ b/include/libc-symbols.h
  12. @@ -22,6 +22,16 @@
  13. #ifndef _LIBC_SYMBOLS_H
  14. #define _LIBC_SYMBOLS_H 1
  15. +/* This is defined for the compilation of all C library code. features.h
  16. + tests this to avoid inclusion of stubs.h while compiling the library,
  17. + before stubs.h has been generated. Some library code that is shared
  18. + with other packages also tests this symbol to see if it is being
  19. + compiled as part of the C library. We must define this before including
  20. + config.h, because it makes some definitions conditional on whether libc
  21. + itself is being compiled, or just some generator program. */
  22. +#define _LIBC 1
  23. +
  24. +
  25. /* This file's macros are included implicitly in the compilation of every
  26. file in the C library by -imacros.
  27. @@ -40,16 +50,6 @@
  28. #include <bits/uClibc_arch_features.h>
  29. -
  30. -/* This is defined for the compilation of all C library code. features.h
  31. - tests this to avoid inclusion of stubs.h while compiling the library,
  32. - before stubs.h has been generated. Some library code that is shared
  33. - with other packages also tests this symbol to see if it is being
  34. - compiled as part of the C library. We must define this before including
  35. - config.h, because it makes some definitions conditional on whether libc
  36. - itself is being compiled, or just some generator program. */
  37. -#define _LIBC 1
  38. -
  39. /* Enable declarations of GNU extensions, since we are compiling them. */
  40. #define _GNU_SOURCE 1