Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 3d29968a38e78b251f6edccd69a287c1 > files > 1

prelude-lml-1.0.1-3.mga3.src.rpm

--- prelude-manager-1.0.2/libmissing/m4/warn-on-use.m4.orig	2012-06-07 21:01:28.000000000 +0800
+++ prelude-manager-1.0.2/libmissing/m4/warn-on-use.m4	2012-09-03 09:04:13.000000000 +0800
@@ -18,8 +18,8 @@
 # some systems declare functions in the wrong header, then INCLUDES
 # should do likewise.
 #
-# If you assume C89, then it is generally safe to assume declarations
-# for functions declared in that standard (such as gets) without
+# It is generally safe to assume declarations for functions declared
+# in the intersection of C89 and C11 (such as printf) without
 # needing gl_WARN_ON_USE_PREPARE.
 AC_DEFUN([gl_WARN_ON_USE_PREPARE],
 [
--- prelude-manager-1.0.2/libmissing/stdio.in.h.orig	2012-06-07 21:01:28.000000000 +0800
+++ prelude-manager-1.0.2/libmissing/stdio.in.h	2012-09-03 09:04:13.000000000 +0800
@@ -139,10 +139,12 @@
 #endif
 
 /* 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.  */
+   so any use of gets warrants an unconditional warning; besides, C11
+   removed it.  */
 #undef gets
+#if HAVE_RAW_DECL_GETS
 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+#endif
 
 #if @GNULIB_FOPEN@
 # if @REPLACE_FOPEN@
--- prelude-manager-1.0.2/libmissing/m4/stdio_h.m4~	2012-03-19 21:42:29.000000000 +0800
+++ prelude-manager-1.0.2/libmissing/m4/stdio_h.m4	2012-09-17 10:22:08.000000000 +0800
@@ -34,9 +34,9 @@
 
   dnl Check for declarations of anything we want to poison if the
   dnl corresponding gnulib module is not in use, and which is not
-  dnl guaranteed by C89.
+  dnl guaranteed by both C89 and C11.
   gl_WARN_ON_USE_PREPARE([[#include <stdio.h>
-    ]], [dprintf fpurge fseeko ftello getdelim getline popen renameat
+    ]], [dprintf fpurge fseeko ftello getdelim getline gets popen renameat
     snprintf vdprintf vsnprintf])
 ])