Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2015-06-27 23:29:52 +0300
committerAdam Langley <agl@google.com>2015-07-07 01:41:16 +0300
commit241364c6f4d44165ce2dc707b9ad141dcc880d1b (patch)
treeb4ad355577365a41a59637159694e002d21d0d98 /crypto/bio
parentdfa4069a161d8067f27997c2628bb3dba302a160 (diff)
Demand for newer POSIX macro
Reason for change: Define _POSIX_C_SOURCE such that it demands correct posix interfaces, netdb.h declares interfaces such as getaddrinfo if __USE_POSIX, i.e. POSIX.1:1990 or later. However, these interfaces were new in the 2001 edition of POSIX therefore ask for Extension from POSIX.1:2001 since we use addrinfo structure here. Change-Id: Icb1c92745d1a0ca958108ae80c270c630628729e Signed-off-by: Khem Raj <raj.khem@gmail.com> Reviewed-on: https://boringssl-review.googlesource.com/5253 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/bio')
-rw-r--r--crypto/bio/socket_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bio/socket_helper.c b/crypto/bio/socket_helper.c
index b1cdd1ac..481278f7 100644
--- a/crypto/bio/socket_helper.c
+++ b/crypto/bio/socket_helper.c
@@ -12,7 +12,7 @@
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
-#define _POSIX_SOURCE
+#define _POSIX_C_SOURCE 200112L
#include <openssl/bio.h>
#include <openssl/err.h>