diff options
author | Andy Polyakov <appro@openssl.org> | 2018-06-29 18:46:57 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2018-07-01 12:05:54 +0200 |
commit | a0e53000a8d2f464c5a49e93abaa606e67d7558e (patch) | |
tree | 22aa1f2275d50a5ab4069524edce6a0e54507df5 /crypto/rand/rand_unix.c | |
parent | ce5eb5e8149d8d03660575f4b8504c993851988a (diff) |
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 <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6616)
Diffstat (limited to 'crypto/rand/rand_unix.c')
-rw-r--r-- | crypto/rand/rand_unix.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 <stdio.h> #include "internal/cryptlib.h" |