diff options
Diffstat (limited to 'gl/m4/realloc.m4')
| -rw-r--r-- | gl/m4/realloc.m4 | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gl/m4/realloc.m4 b/gl/m4/realloc.m4 index d22138fc..eb90d588 100644 --- a/gl/m4/realloc.m4 +++ b/gl/m4/realloc.m4 | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | # realloc.m4 serial 26 | 1 | # realloc.m4 |
| 2 | dnl Copyright (C) 2007, 2009-2023 Free Software Foundation, Inc. | 2 | # serial 29 |
| 3 | dnl Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc. | ||
| 3 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 5 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
| @@ -16,7 +17,8 @@ AC_DEFUN([_AC_FUNC_REALLOC_IF], | |||
| 16 | [[#include <stdlib.h> | 17 | [[#include <stdlib.h> |
| 17 | ]], | 18 | ]], |
| 18 | [[void *p = realloc (0, 0); | 19 | [[void *p = realloc (0, 0); |
| 19 | int result = !p; | 20 | void * volatile vp = p; |
| 21 | int result = !vp; | ||
| 20 | free (p); | 22 | free (p); |
| 21 | return result;]]) | 23 | return result;]]) |
| 22 | ], | 24 | ], |
| @@ -25,8 +27,8 @@ AC_DEFUN([_AC_FUNC_REALLOC_IF], | |||
| 25 | [case "$host_os" in | 27 | [case "$host_os" in |
| 26 | # Guess yes on platforms where we know the result. | 28 | # Guess yes on platforms where we know the result. |
| 27 | *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ | 29 | *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ |
| 28 | | gnu* | *-musl* | midnightbsd* \ | 30 | | gnu* | *-musl* | midipix* | midnightbsd* \ |
| 29 | | hpux* | solaris* | cygwin* | mingw* | msys* ) | 31 | | hpux* | solaris* | cygwin* | mingw* | windows* | msys* ) |
| 30 | ac_cv_func_realloc_0_nonnull="guessing yes" ;; | 32 | ac_cv_func_realloc_0_nonnull="guessing yes" ;; |
| 31 | # If we don't know, obey --enable-cross-guesses. | 33 | # If we don't know, obey --enable-cross-guesses. |
| 32 | *) ac_cv_func_realloc_0_nonnull="$gl_cross_guess_normal" ;; | 34 | *) ac_cv_func_realloc_0_nonnull="$gl_cross_guess_normal" ;; |
