summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/include
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-02-22 17:29:15 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-02-22 17:29:15 +0000
commitfd2152f9e652fb5e938bc8f02fac662062af5df2 (patch)
tree284884ee2de5ccea2086d64cb22b6536e745fdb9 /sys/arch/mvme88k/include
parent8ddf0fc0955bdedd8f4fdff69c51e32bde9bef12 (diff)
Use an _BSD_FOO_T_ type declaration for off_t in machine/ansi.h to allow
off_t to be visible in stdio.h even in strict ansi mode. This is needed for ftello()/fseeko() and it allows us to remove the horrible fpos_t hack.
Diffstat (limited to 'sys/arch/mvme88k/include')
-rw-r--r--sys/arch/mvme88k/include/ansi.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/mvme88k/include/ansi.h b/sys/arch/mvme88k/include/ansi.h
index d811f61dc0e..4ff6a9f11ea 100644
--- a/sys/arch/mvme88k/include/ansi.h
+++ b/sys/arch/mvme88k/include/ansi.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)ansi.h 8.2 (Berkeley) 1/4/94
- * $Id: ansi.h,v 1.7 1999/02/09 06:36:25 smurph Exp $
+ * $Id: ansi.h,v 1.8 2000/02/22 17:29:13 millert Exp $
*/
#ifndef _ANSI_H_
@@ -79,4 +79,10 @@
#define _BSD_WCHAR_T_ int /* wchar_t */
#define _BSD_RUNE_T_ int /* rune_t */
+/*
+ * We describe off_t here so its declaration can be visible to
+ * stdio without pulling in all of <sys/type.h>, thus appeasing ANSI.
+ */
+#define _BSD_OFF_T_ long long /* file offset */
+
#endif /* _ANSI_H_ */