summaryrefslogtreecommitdiffstats
path: root/fdisk/llseek.c
diff options
context:
space:
mode:
Diffstat (limited to 'fdisk/llseek.c')
-rw-r--r--fdisk/llseek.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/fdisk/llseek.c b/fdisk/llseek.c
index 9e00d3e6d..b55dfa792 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)
{