ebbc582912
Related to: <https://fedoraproject.org/wiki/Changes/PortingToModernC> <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
21 lines
502 B
Diff
21 lines
502 B
Diff
test-aligned-alloc: Define _GNU_SOURCE for the aligned_alloc prototype
|
|
|
|
Submitted upstream:
|
|
|
|
<https://github.com/ColinIanKing/stress-ng/pull/247>
|
|
|
|
diff --git a/test/test-aligned-alloc.c b/test/test-aligned-alloc.c
|
|
index 0ea91b6a7ccadf12..f29365530b9e5e52 100644
|
|
--- a/test/test-aligned-alloc.c
|
|
+++ b/test/test-aligned-alloc.c
|
|
@@ -16,6 +16,9 @@
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
*
|
|
*/
|
|
+
|
|
+#define _GNU_SOURCE
|
|
+
|
|
#include <stdlib.h>
|
|
|
|
int main(void)
|