X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=fdisk%2Fllseek.c;h=b55dfa7922892fc8e904863405f990bd99b58c7d;hb=66ee8158b69525e12060ef558cb5d77feadab1dc;hp=9e00d3e6df6bf3ddb5be5adbd206ea6755694e8a;hpb=22853e4a82c6ef7b336527529acb94b14a0b0fd8;p=thirdparty%2Futil-linux.git diff --git a/fdisk/llseek.c b/fdisk/llseek.c index 9e00d3e6df..b55dfa7922 100644 --- a/fdisk/llseek.c +++ b/fdisk/llseek.c @@ -35,10 +35,24 @@ extern ext2_loff_t ext2_llseek (unsigned int, ext2_loff_t, unsigned int); static int _llseek (unsigned int, unsigned long, unsigned long, ext2_loff_t *, unsigned int); +#ifdef __NR__llseek + static _syscall5(int,_llseek,unsigned int,fd,unsigned long,offset_high, unsigned long, offset_low,ext2_loff_t *,result, unsigned int, origin) +#else + +/* no __NR__llseek on compilation machine - might give it explicitly */ +static int _llseek (unsigned int fd, unsigned long oh, + unsigned long ol, ext2_loff_t *result, + unsigned int origin) { + errno = ENOSYS; + return -1; +} + +#endif + static ext2_loff_t my_llseek (unsigned int fd, ext2_loff_t offset, unsigned int origin) {