Hi!

This fixes build against oldish glibcs, where posix_memalign has not been
declared with the default feature test macros, but has been present in the
library, so HAVE_POSIX_MEMALIGN is defined.

Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux,
committed to trunk and gcc-9-branch.

2019-05-20  Jakub Jelinek  <ja...@redhat.com>

        PR libgomp/90527
        * alloc.c (_GNU_SOURCE): Define.

--- libgomp/alloc.c     2019-04-25 20:01:50.766232432 +0200
+++ libgomp/alloc.c     2019-05-18 10:10:40.153245345 +0200
@@ -27,6 +27,7 @@
    places in the OpenMP API do not make any provision for failure, so in
    general we cannot allow memory allocation to fail.  */
 
+#define _GNU_SOURCE
 #include "libgomp.h"
 #include <stdlib.h>
 

        Jakub

Reply via email to