aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2018-08-30 14:14:53 +0200
committerFlorian Weimer <fweimer@redhat.com>2018-08-30 14:14:53 +0200
commit2bda273aa37e47bb5afdaf122605440391dac7c5 (patch)
tree214941edddc65bc898c1b60ae8177cdec05921b4 /stdlib
parent3bad2358d67d371497079bba4f8eca9c0096f4e2 (diff)
downloadglibc-2bda273aa37e47bb5afdaf122605440391dac7c5.zip
glibc-2bda273aa37e47bb5afdaf122605440391dac7c5.tar.gz
glibc-2bda273aa37e47bb5afdaf122605440391dac7c5.tar.bz2
reallocarray: Declare under _DEFAULT_SOURCE
Initially, this function was restricted to _GNU_SOURCE, but experience shows that compatibility with existing build systems is improved if we declare it under _DEFAULT_SOURCE as well.
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/stdlib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h
index 8e23e93..870e02d 100644
--- a/stdlib/stdlib.h
+++ b/stdlib/stdlib.h
@@ -549,7 +549,7 @@ extern void *calloc (size_t __nmemb, size_t __size)
extern void *realloc (void *__ptr, size_t __size)
__THROW __attribute_warn_unused_result__;
-#ifdef __USE_GNU
+#ifdef __USE_MISC
/* Re-allocate the previously allocated block in PTR, making the new
block large enough for NMEMB elements of SIZE bytes each. */
/* __attribute_malloc__ is not used, because if reallocarray returns