diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2000-02-22 17:29:15 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2000-02-22 17:29:15 +0000 |
commit | fd2152f9e652fb5e938bc8f02fac662062af5df2 (patch) | |
tree | 284884ee2de5ccea2086d64cb22b6536e745fdb9 /sys/arch/alpha/include/ansi.h | |
parent | 8ddf0fc0955bdedd8f4fdff69c51e32bde9bef12 (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/alpha/include/ansi.h')
-rw-r--r-- | sys/arch/alpha/include/ansi.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/alpha/include/ansi.h b/sys/arch/alpha/include/ansi.h index dfbe4e1a7c3..f7a73d224b8 100644 --- a/sys/arch/alpha/include/ansi.h +++ b/sys/arch/alpha/include/ansi.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ansi.h,v 1.8 1997/07/07 05:56:34 millert Exp $ */ +/* $OpenBSD: ansi.h,v 1.9 2000/02/22 17:29:12 millert Exp $ */ /* $NetBSD: ansi.h,v 1.6 1996/11/15 22:38:45 jtc Exp $ */ /*- @@ -80,4 +80,10 @@ typedef struct { #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 <sys/type.h>, thus appeasing ANSI. + */ +#define _BSD_OFF_T_ long /* file offset */ + #endif /* _ANSI_H_ */ |