From 35d937e4eb7b8e0a4e9a113d2f7434d55c0bc056 Mon Sep 17 00:00:00 2001
From: Stephen Hines <srhines@google.com>
Date: Tue, 1 Oct 2013 15:02:07 -0700
Subject: [PATCH] Remove _FORTIFY_SOURCE in implementation files.

This was causing conflicting declarations for the library definitions of
common functions like sprintf(), snprintf(), and strchr().

Change-Id: I5daaa8a58183aa0d4d0fae8a7cb799671810f576
---
 libc/bionic/strchr.cpp | 1 +
 libc/stdio/snprintf.c  | 1 +
 libc/stdio/sprintf.c   | 1 +
 3 files changed, 3 insertions(+)

diff --git a/libc/bionic/strchr.cpp b/libc/bionic/strchr.cpp
index e2f447169..029fbd9d7 100644
--- a/libc/bionic/strchr.cpp
+++ b/libc/bionic/strchr.cpp
@@ -27,6 +27,7 @@
  * SUCH DAMAGE.
  */
 
+#undef _FORTIFY_SOURCE
 #include <string.h>
 
 extern "C" char* strchr(const char* p, int ch) {
diff --git a/libc/stdio/snprintf.c b/libc/stdio/snprintf.c
index 5aa54be43..9a25ef2cd 100644
--- a/libc/stdio/snprintf.c
+++ b/libc/stdio/snprintf.c
@@ -31,6 +31,7 @@
  * SUCH DAMAGE.
  */
 
+#undef _FORTIFY_SOURCE
 #include <limits.h>
 #include <stdio.h>
 #include <string.h>
diff --git a/libc/stdio/sprintf.c b/libc/stdio/sprintf.c
index 3cf795224..124555277 100644
--- a/libc/stdio/sprintf.c
+++ b/libc/stdio/sprintf.c
@@ -31,6 +31,7 @@
  * SUCH DAMAGE.
  */
 
+#undef _FORTIFY_SOURCE
 #include <stdio.h>
 #include <string.h>
 #include <stdarg.h>