From fd2152f9e652fb5e938bc8f02fac662062af5df2 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 22 Feb 2000 17:29:15 +0000 Subject: 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. --- sys/arch/kbus/include/ansi.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys/arch/kbus/include/ansi.h') diff --git a/sys/arch/kbus/include/ansi.h b/sys/arch/kbus/include/ansi.h index a22d79860bc..ee7bff74d62 100644 --- a/sys/arch/kbus/include/ansi.h +++ b/sys/arch/kbus/include/ansi.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ansi.h,v 1.2 1999/02/20 22:43:52 millert Exp $ */ +/* $OpenBSD: ansi.h,v 1.3 2000/02/22 17:29:13 millert Exp $ */ /* $NetBSD: ansi.h,v 1.6 1996/11/15 22:38:59 jtc Exp $ */ /*- @@ -75,4 +75,10 @@ #define _BSD_WINT_T_ int /* wint_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 , thus appeasing ANSI. + */ +#define _BSD_OFF_T_ long long /* file offset */ + #endif /* _ANSI_H_ */ -- cgit v1.2.3