diff options
author | Nigel Kukard <nkukard@lbsd.net> | 2008-04-17 13:23:20 +0000 |
---|---|---|
committer | Nigel Kukard <nkukard@lbsd.net> | 2008-04-17 13:23:20 +0000 |
commit | 6bdcf9c361fea713ae0c24d1b09142093721a5b0 (patch) | |
tree | 39093ed1fd50f90c1a2d25fb18f3a3cd49bb5471 /package/sfdisk/sfdisk.005.no-llseek-fix.patch | |
parent | 51114afc64b3e13e7a393f9d34a607ccf699a4d0 (diff) | |
download | buildroot-novena-6bdcf9c361fea713ae0c24d1b09142093721a5b0.tar.gz buildroot-novena-6bdcf9c361fea713ae0c24d1b09142093721a5b0.zip |
* Fix _llseek not being defined in some cases
* Add index & rindex defines if they're not defined either (legacy susv4 functions)
Diffstat (limited to 'package/sfdisk/sfdisk.005.no-llseek-fix.patch')
-rw-r--r-- | package/sfdisk/sfdisk.005.no-llseek-fix.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/package/sfdisk/sfdisk.005.no-llseek-fix.patch b/package/sfdisk/sfdisk.005.no-llseek-fix.patch new file mode 100644 index 000000000..4ea571ce4 --- /dev/null +++ b/package/sfdisk/sfdisk.005.no-llseek-fix.patch @@ -0,0 +1,21 @@ +diff -ur sfdisk_vanilla/sfdisk.c sfdisk_llseek-fix/sfdisk.c +--- sfdisk_vanilla/sfdisk.c 2004-01-13 13:03:11.000000000 +0000 ++++ sfdisk_llseek-fix/sfdisk.c 2008-04-17 08:42:35.000000000 +0000 +@@ -134,9 +137,17 @@ + * Note: we use 512-byte sectors here, irrespective of the hardware ss. + */ + #if defined(__linux__) && !defined (__alpha__) && !defined (__ia64__) && !defined (__x86_64__) && !defined (__s390x__) ++#if defined(_llseek) + static + _syscall5(int, _llseek, unsigned int, fd, ulong, hi, ulong, lo, + loff_t *, res, unsigned int, wh); ++#else ++static int _llseek (unsigned int fd, unsigned long oh, ++ unsigned long ol, long long *result, ++ unsigned int origin) { ++ return syscall (__NR__llseek, fd, oh, ol, result, origin); ++#endif ++} + #endif + + static int |