_lfs_64.h 648 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  3. *
  4. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  5. */
  6. #include <features.h>
  7. #ifdef __UCLIBC_HAS_LFS__
  8. #if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS != 64
  9. #undef _FILE_OFFSET_BITS
  10. #define _FILE_OFFSET_BITS 64
  11. #endif
  12. #ifndef __USE_LARGEFILE64
  13. # define __USE_LARGEFILE64 1
  14. #endif
  15. /* We absolutely do _NOT_ want interfaces silently
  16. * renamed under us or very bad things will happen... */
  17. #ifdef __USE_FILE_OFFSET64
  18. # undef __USE_FILE_OFFSET64
  19. #endif
  20. #else
  21. # error Do not include this header in files not built when LFS is disabled
  22. #endif