summaryrefslogtreecommitdiff
path: root/pcr/nagios-plugins/stdio.patch
blob: f87d313b5bb9b421d12706f1c58dedc546618fb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff -Naur nagios-plugins-1.4.16-orig/gl/stdio.in.h nagios-plugins-1.4.16-patched/gl/stdio.in.h
--- nagios-plugins-1.4.16-orig/gl/stdio.in.h	2012-06-27 19:32:47.000000000 +0200
+++ nagios-plugins-1.4.16-patched/gl/stdio.in.h	2012-08-09 06:29:26.038030953 +0200
@@ -140,8 +140,10 @@
 /* It is very rare that the developer ever has full control of stdin,
    so any use of gets warrants an unconditional warning.  Assume it is
    always declared, since it is required by C89.  */
+#ifdef gets
 #undef gets
 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+#endif
 
 #if @GNULIB_FOPEN@
 # if @REPLACE_FOPEN@