Просмотр исходного кода

Fix NaCl build.

NaCl defines _POSIX_C_SOURCE on the command line for some reason, thus
we have to be defensive about defining it.

Change-Id: Icbc8afcb1ac0e0ca23b788b11ea911c3f55a8b7f
Reviewed-on: https://boringssl-review.googlesource.com/1891
Reviewed-by: David Benjamin <davidben@chromium.org>
Reviewed-by: Adam Langley <agl@google.com>
kris/onging/CECPQ3_patch15
Adam Langley 10 лет назад
Родитель
Сommit
51fcd87102
4 измененных файлов: 8 добавлений и 0 удалений
  1. +2
    -0
      crypto/bio/bio_test.c
  2. +2
    -0
      crypto/lhash/lhash_test.c
  3. +2
    -0
      crypto/mem.c
  4. +2
    -0
      crypto/time_support.c

+ 2
- 0
crypto/bio/bio_test.c Просмотреть файл

@@ -12,7 +12,9 @@
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */

#if !defined(_POSIX_C_SOURCE)
#define _POSIX_C_SOURCE 201410L
#endif

#include <openssl/base.h>



+ 2
- 0
crypto/lhash/lhash_test.c Просмотреть файл

@@ -12,7 +12,9 @@
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */

#if !defined(_POSIX_C_SOURCE)
#define _POSIX_C_SOURCE 201410L
#endif

#include <openssl/crypto.h>
#include <openssl/lhash.h>


+ 2
- 0
crypto/mem.c Просмотреть файл

@@ -53,7 +53,9 @@
* copied and put under another distribution licence
* [including the GNU Public Licence.] */

#if !defined(_POSIX_C_SOURCE)
#define _POSIX_C_SOURCE 201410L /* needed for strdup, snprintf, vprintf etc */
#endif

#include <openssl/mem.h>



+ 2
- 0
crypto/time_support.c Просмотреть файл

@@ -55,7 +55,9 @@
* (eay@cryptsoft.com). This product includes software written by Tim
* Hudson (tjh@cryptsoft.com). */

#if !defined(_POSIX_C_SOURCE)
#define _POSIX_C_SOURCE 201410L /* for gmtime_r */
#endif

#include <openssl/time_support.h>



Загрузка…
Отмена
Сохранить