0001-fix-compiling-with-non-glibc-libcs.patch 788 B

1234567891011121314151617181920212223242526
  1. [PATCH] fix compilation when libc does not define __GLIBC__
  2. libexfat would only compile on Linux with __GLIBC__ defined. Changed
  3. to use __linux__ which likely better fits the original intent.
  4. Upstream status: applied.
  5. See https://groups.google.com/forum/#!topic/exfat/8g3yumqrf1A.
  6. Signed-off-by: Brendan Heading <brendanheading@gmail.com>
  7. ---
  8. platform.h | 2 +-
  9. 1 file changed, 1 insertion(+), 1 deletion(-)
  10. Index: libexfat/libexfat/platform.h
  11. ===================================================================
  12. --- libexfat/libexfat/platform.h (revision 422)
  13. +++ libexfat/libexfat/platform.h (working copy)
  14. @@ -24,7 +24,7 @@
  15. #ifndef PLATFORM_H_INCLUDED
  16. #define PLATFORM_H_INCLUDED
  17. -#if defined(__GLIBC__)
  18. +#if defined(__linux__)
  19. #include <endian.h>
  20. #include <byteswap.h>