summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2012-12-07 11:49:30 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-12-07 11:49:30 +0100
commit7478cb0e047c7b700308dda50b80aebc2df184a7 (patch)
tree5c2cb76874e3333ff7d116c98f0717b891d3d09a
parente621f84c3679917f37172892e5665633348c1a0f (diff)
downloadptxdist-7478cb0e047c7b700308dda50b80aebc2df184a7.tar.gz
ptxdist-7478cb0e047c7b700308dda50b80aebc2df184a7.tar.xz
parted: fix building with glibc 2.16
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--patches/parted-2.3/0001-make-sure-gets-is-defined-before-undefining-it.patch26
-rw-r--r--patches/parted-2.3/series4
2 files changed, 30 insertions, 0 deletions
diff --git a/patches/parted-2.3/0001-make-sure-gets-is-defined-before-undefining-it.patch b/patches/parted-2.3/0001-make-sure-gets-is-defined-before-undefining-it.patch
new file mode 100644
index 000000000..b2be0f21c
--- /dev/null
+++ b/patches/parted-2.3/0001-make-sure-gets-is-defined-before-undefining-it.patch
@@ -0,0 +1,26 @@
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+Date: Fri, 7 Dec 2012 11:47:58 +0100
+Subject: [PATCH] make sure 'gets' is defined before undefining it
+
+glibc 2.16 has removed gets completely
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+---
+ lib/stdio.in.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/lib/stdio.in.h b/lib/stdio.in.h
+index 79dda5f..e3ede74 100644
+--- a/lib/stdio.in.h
++++ b/lib/stdio.in.h
+@@ -142,8 +142,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 defined 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/patches/parted-2.3/series b/patches/parted-2.3/series
new file mode 100644
index 000000000..3aed33f27
--- /dev/null
+++ b/patches/parted-2.3/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-make-sure-gets-is-defined-before-undefining-it.patch
+# 193fb47748b8a510e34ff1672ac111fc - git-ptx-patches magic