summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/local.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/local.h')
-rw-r--r--lib/libc/stdio/local.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/libc/stdio/local.h b/lib/libc/stdio/local.h
index 085cad26234..c2e912eae2b 100644
--- a/lib/libc/stdio/local.h
+++ b/lib/libc/stdio/local.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: local.h,v 1.9 2005/03/31 18:36:29 pat Exp $ */
+/* $OpenBSD: local.h,v 1.10 2005/04/30 09:25:17 espie Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -37,6 +37,8 @@
* in particular, macros and private variables.
*/
+#include "fileext.h"
+
int __sflush(FILE *);
FILE *__sfp(void);
int __srefill(FILE *);
@@ -66,11 +68,11 @@ extern int __sdidinit;
* Test whether the given stdio file has an active ungetc buffer;
* release such a buffer, without restoring ordinary unread data.
*/
-#define HASUB(fp) ((fp)->_ub._base != NULL)
+#define HASUB(fp) (_UB(fp)._base != NULL)
#define FREEUB(fp) { \
- if ((fp)->_ub._base != (fp)->_ubuf) \
- free((char *)(fp)->_ub._base); \
- (fp)->_ub._base = NULL; \
+ if (_UB(fp)._base != (fp)->_ubuf) \
+ free(_UB(fp)._base); \
+ _UB(fp)._base = NULL; \
}
/*