mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-10 07:36:28 -04:00
Merge pull request #9086 from nileshkale123/fix/redefinition_warning_for_gnu_source_backport_2.28
Backport 2.28: Fixed issue of redefinition warning messages for _GNU_SOURCE
This commit is contained in:
commit
e32671f0d7
@ -0,0 +1,5 @@
|
|||||||
|
Bugfix
|
||||||
|
* Fix issue of redefinition warning messages for _GNU_SOURCE in
|
||||||
|
entropy_poll.c and sha_256.c. There was a build warning during
|
||||||
|
building for linux platform.
|
||||||
|
Resolves #9026
|
@ -5,10 +5,12 @@
|
|||||||
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(__linux__) || defined(__midipix__) && !defined(_GNU_SOURCE)
|
#if defined(__linux__) || defined(__midipix__)
|
||||||
/* Ensure that syscall() is available even when compiling with -std=c99 */
|
/* Ensure that syscall() is available even when compiling with -std=c99 */
|
||||||
|
#if !defined(_GNU_SOURCE)
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user