From 31a073406c5d5a24e5294b49e5bdbd6d2f0544ef Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Wed, 16 Feb 2000 18:52:03 +0100
Subject: [PATCH] Use lseek(2) instead of tell(3C), since the former is more
 portable.

Rev: src/modules/HTTPLoop/requestobject.c:1.7
---
 src/modules/HTTPLoop/requestobject.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/modules/HTTPLoop/requestobject.c b/src/modules/HTTPLoop/requestobject.c
index 0fd3a41f76..64414203f3 100644
--- a/src/modules/HTTPLoop/requestobject.c
+++ b/src/modules/HTTPLoop/requestobject.c
@@ -1,5 +1,5 @@
 /*
- * $Id: requestobject.c,v 1.6 1999/12/12 21:55:00 per Exp $
+ * $Id: requestobject.c,v 1.7 2000/02/16 17:52:03 grubba Exp $
  */
 
 #include "global.h"
@@ -726,7 +726,7 @@ void actually_send(struct send_args *a)
       len = 0;
     }
 
-    if ((off = tell(a->from_fd)) < 0) {
+    if ((off = lseek(a->from_fd, 0, SEEK_CUR)) < 0) {
       /* Probably a pipe, so sendfile() will probably fail anyway,
        * but it doesn't hurt to try...
        */
-- 
GitLab