changeset 17923:2b5c3699ac6f

fcntl: Fix cross compiling * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the correct variable name (gl_cv_func_fcntl_f_dupfd_works).
author Kevin Cernekee <cernekee@google.com>
date Thu, 19 Feb 2015 10:11:19 -0800
parents 1092f168a05e
children 68876b89b3ad
files ChangeLog m4/fcntl.m4
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-02-19  Kevin Cernekee  <cernekee@google.com>
+
+	fcntl: Fix cross compiling
+	* m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
+	correct variable name (gl_cv_func_fcntl_f_dupfd_works).
+
 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
 
 	dup2, fcntl: cross-compiler better for Android
--- a/m4/fcntl.m4
+++ b/m4/fcntl.m4
@@ -53,8 +53,8 @@
          [gl_cv_func_fcntl_f_dupfd_works=no],
          [case $host_os in
             aix* | cygwin* | haiku*)
-               gl_cv_func_dup2_works="guessing no" ;;
-            *) gl_cv_func_dup2_works="guessing yes" ;;
+               gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
+            *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
           esac])])
     case $gl_cv_func_fcntl_f_dupfd_works in
       *yes) ;;