Fix build with missing gets declaration submit/trunk/20130112.050652
authorAnas Nashif <anas.nashif@intel.com>
Sat, 12 Jan 2013 05:06:49 +0000 (21:06 -0800)
committerAnas Nashif <anas.nashif@intel.com>
Sat, 12 Jan 2013 05:06:49 +0000 (21:06 -0800)
gnu/stdio.in.h
packaging/cpio.changes [new file with mode: 0644]

index 88b368be322aad6675d08a68c9043427cab3d9de..c157c3dbc746a01efddac167513f33b19c04071f 100644 (file)
@@ -138,8 +138,10 @@ _GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - "
 /* 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.  */
+#if HAVE_RAW_DECL_GETS
 #undef gets
 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+#endif
 
 #if @GNULIB_FOPEN@
 # if @REPLACE_FOPEN@
diff --git a/packaging/cpio.changes b/packaging/cpio.changes
new file mode 100644 (file)
index 0000000..4c775b6
--- /dev/null
@@ -0,0 +1,3 @@
+* Fri Jan 11 2013 Anas Nashif <anas.nashif@intel.com> upstream/2.11@4dbcc78
+- Fix build with missing gets declaration
+