Avoid redefinition warnings for _GNU_SOURCE. See #19354

This commit is contained in:
Paul Cornett
2021-12-30 11:11:01 -08:00
parent d68c3709e4
commit 419501771b

View File

@@ -252,12 +252,12 @@
# endif # endif
# endif /* SGI */ # endif /* SGI */
# if defined(__INNOTEK_LIBC__) # if defined(__INNOTEK_LIBC__) && !defined(_GNU_SOURCE)
/* Ensure visibility of strnlen declaration */ /* Ensure visibility of strnlen declaration */
# define _GNU_SOURCE # define _GNU_SOURCE
# endif # endif
# if defined(__CYGWIN__) # if defined(__CYGWIN__) && !defined(_GNU_SOURCE)
/* Ensure visibility of Dl_info and pthread_setconcurrency declarations */ /* Ensure visibility of Dl_info and pthread_setconcurrency declarations */
# define _GNU_SOURCE # define _GNU_SOURCE
# endif # endif