2
1

uClibc-0.9.29-fix-internal_function-definition.patch 2.1 KB

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