• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

TLS/SSL and crypto library


Commit MetaInfo

修訂e979e4715f3795cb59fcf46c77e7c714a184edd8 (tree)
時間2015-12-03 02:50:01
作者Richard Levitte <levitte@open...>
CommiterRichard Levitte

Log Message

_BSD_SOURCE is deprecated, use _DEFAULT_SOURCE instead

The feature_test_macros(7) manual tells us that _BSD_SOURCE is
deprecated since glibc 2.20 and that the compiler will warn about it
being used, unless _DEFAULT_SOURCE is defined as well.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit f9fd35248c9a3b1125d9ab82ffb19d62e86533ac)

Change Summary

差異

--- a/ssl/ssltest.c
+++ b/ssl/ssltest.c
@@ -116,6 +116,7 @@
116116
117117 /* Or gethostname won't be declared properly on Linux and GNU platforms. */
118118 #define _BSD_SOURCE 1
119+#define _DEFAULT_SOURCE 1
119120
120121 #include <assert.h>
121122 #include <errno.h>