about summary refs log tree commit diff
path: root/libio/vscanf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/vscanf.c')
-rw-r--r--libio/vscanf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libio/vscanf.c b/libio/vscanf.c
index 936a2fdef8..342dc3effc 100644
--- a/libio/vscanf.c
+++ b/libio/vscanf.c
@@ -24,6 +24,11 @@
    This exception applies to code released by its copyright holders
    in files containing the exception.  */
 
+/* This file defines one of the deprecated scanf variants.  */
+#include <features.h>
+#undef __GLIBC_USE_DEPRECATED_SCANF
+#define __GLIBC_USE_DEPRECATED_SCANF 1
+
 #include "libioP.h"
 #include "stdio.h"