summaryrefslogtreecommitdiff
path: root/m4/free.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/free.m4')
-rw-r--r--m4/free.m47
1 files changed, 5 insertions, 2 deletions
diff --git a/m4/free.m4 b/m4/free.m4
index d671376b0..a7923b905 100644
--- a/m4/free.m4
+++ b/m4/free.m4
@@ -1,4 +1,4 @@
-# free.m4 serial 5
+# free.m4 serial 6
# Copyright (C) 2003-2005, 2009-2021 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -40,7 +40,10 @@ AC_DEFUN([gl_FUNC_FREE],
])
case $gl_cv_func_free_preserves_errno in
- *yes) ;;
+ *yes)
+ AC_DEFINE([HAVE_FREE_POSIX], [1],
+ [Define if the 'free' function is guaranteed to preserve errno.])
+ ;;
*) REPLACE_FREE=1 ;;
esac
])