diff options
author | agl@chromium.org <agl@chromium.org@4ff67af0-8c30-449e-8e8b-ad334ec8d88c> | 2011-07-27 16:36:11 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@4ff67af0-8c30-449e-8e8b-ad334ec8d88c> | 2011-07-27 16:36:11 +0000 |
commit | 29e645c65f3c148d8f3e9107ea1d8fb9fcb43cca (patch) | |
tree | 64fbae9708b3047968f8552bb9678d04f281705e /patches | |
parent | 8917c6e86fe7d1056523ac75be0c627bde10bbb4 (diff) | |
download | openssl-29e645c65f3c148d8f3e9107ea1d8fb9fcb43cca.tar.gz |
Guard #define with #ifndef
third_party/openssl/openssl/crypto/ui/ui_openssl.c:125:1: warning:
"_POSIX_C_SOURCE" redefined
In file included from /usr/include/unistd.h:26,
from third_party/openssl/config/piii/openssl/opensslconf.h:132,
from third_party/openssl/openssl/e_os2.h:56,
from third_party/openssl/openssl/crypto/ui/ui_openssl.c:118:
/usr/include/features.h:210:1: warning: this is the location of the
previous definition
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7514045
git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/openssl@94299 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Diffstat (limited to 'patches')
-rw-r--r-- | patches/posix_c_source.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/patches/posix_c_source.patch b/patches/posix_c_source.patch new file mode 100644 index 0000000..ff51594 --- /dev/null +++ b/patches/posix_c_source.patch @@ -0,0 +1,15 @@ +diff --git a/openssl/crypto/ui/ui_openssl.c b/openssl/crypto/ui/ui_openssl.c +index 06270f0..e2fff79 100644 +--- a/openssl/crypto/ui/ui_openssl.c ++++ b/openssl/crypto/ui/ui_openssl.c +@@ -122,7 +122,10 @@ + * sigaction and fileno included. -pedantic would be more appropriate for + * the intended purposes, but we can't prevent users from adding -ansi. + */ ++#ifndef _POSIX_C_SOURCE + #define _POSIX_C_SOURCE 1 ++#endif ++ + #include <signal.h> + #include <stdio.h> + #include <string.h> |