dmraid-diet.patch 370 B

123456789101112
  1. --- dmraid/lib/misc/file.c~ 2008-06-12 12:54:32.000000000 +0200
  2. +++ dmraid/lib/misc/file.c 2009-03-19 00:14:33.000000000 +0100
  3. @@ -69,7 +69,7 @@
  4. if ((fd = open(path, flags, lc->mode)) == -1)
  5. LOG_ERR(lc, 0, "opening \"%s\"", path);
  6. -#ifdef __KLIBC__
  7. +#if defined(__KLIBC__) || defined(__dietlibc__)
  8. #define DMRAID_LSEEK lseek
  9. #else
  10. #define DMRAID_LSEEK lseek64