blob: f9d59b5170b9bfd287b97366d908b5fd98945796 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
$NetBSD: patch-ad,v 1.4 2008/04/29 13:54:55 wiz Exp $
--- lib/fseeko.c.orig 2007-12-17 21:18:34 -0800
+++ lib/fseeko.c 2008-04-14 20:27:44 -0700
@@ -23,6 +23,18 @@
/* Get off_t and lseek. */
#include <unistd.h>
+#ifdef __DragonFly__
+
+#undef fseeko
+
+int
+rpl_fseeko (FILE *fp, off_t offset, int whence)
+{
+ return(fseeko(fp, offset, whence));
+}
+
+#else
+
#undef fseeko
#if !HAVE_FSEEKO
# undef fseek
@@ -121,3 +133,5 @@
else
return fseeko (fp, offset, whence);
}
+
+#endif
|