]> git.pld-linux.org Git - packages/parted.git/blob - parted-lseek64.patch
- fix exit crash after libparted dlopen error
[packages/parted.git] / parted-lseek64.patch
1 diff -ur parted-1.4.16/libparted/device.c parted-1.4.16-/libparted/device.c
2 --- parted-1.4.16/libparted/device.c    Sat Aug 18 13:44:12 2001
3 +++ parted-1.4.16-/libparted/device.c   Sat Aug 18 13:44:44 2001
4 @@ -17,6 +17,8 @@
5      Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
6  */
7  
8 +#define _GNU_SOURCE
9 +
10  #include "config.h"
11  
12  #include <libintl.h>
13 @@ -890,7 +890,7 @@
14  #endif
15         {
16                 off_t           pos = sector * 512;
17 -               return lseek (dev->fd, pos, SEEK_SET) == pos;
18 +               return lseek64 (dev->fd, pos, SEEK_SET) == pos;
19         }
20  }
21  
This page took 0.026187 seconds and 3 git commands to generate.