about summary refs log tree commit diff
path: root/libio/__fpurge.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/__fpurge.c')
-rw-r--r--libio/__fpurge.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libio/__fpurge.c b/libio/__fpurge.c
index dd83d9f520..2956385cbe 100644
--- a/libio/__fpurge.c
+++ b/libio/__fpurge.c
@@ -24,6 +24,7 @@
    General Public License.  */
 
 #include <stdio_ext.h>
+#include "libioP.h"
 
 void
 __fpurge (FILE *fp)
@@ -31,7 +32,7 @@ __fpurge (FILE *fp)
   if (fp->_mode > 0)
     {
       /* Wide-char stream.  */
-      if (_IO_in_wbackup (fp))
+      if (_IO_in_backup (fp))
 	_IO_free_wbackup_area (fp);
 
       fp->_wide_data->_IO_read_end = fp->_wide_data->_IO_read_ptr;