From: Andy Polyakov Date: Fri, 29 Jun 2018 16:46:57 +0000 (+0200) Subject: rand/rand_unix.c: address macro redifinition warning. X-Git-Tag: OpenSSL_1_1_1-pre9~213 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a0e53000a8d2f464c5a49e93abaa606e67d7558e;p=oweals%2Fopenssl.git rand/rand_unix.c: address macro redifinition warning. Occasionally, e.g. when compiling for elderly glibc, you end up passing -D_GNU_SOURCE on command line, and doing so triggered warning... Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/6616) --- diff --git a/crypto/rand/rand_unix.c b/crypto/rand/rand_unix.c index b64cf27825..f482de063a 100644 --- a/crypto/rand/rand_unix.c +++ b/crypto/rand/rand_unix.c @@ -7,7 +7,9 @@ * https://www.openssl.org/source/license.html */ -#define _GNU_SOURCE +#ifndef _GNU_SOURCE +# define _GNU_SOURCE +#endif #include "e_os.h" #include #include "internal/cryptlib.h"