configure: fix fd restoration
authorMichael Wallner <mike@php.net>
Wed, 8 Feb 2017 14:59:30 +0000 (15:59 +0100)
committerMichael Wallner <mike@php.net>
Wed, 8 Feb 2017 14:59:46 +0000 (15:59 +0100)
m4/psi/psi.m4

index b137ec6..6787834 100644 (file)
@@ -166,7 +166,7 @@ EOF
                
                _AC_CACHE_DUMP >>conf.env
                dnl restore STDOUT,STDERR
-               exec >&$PSI_MESSAGE_FD 2>&$PSI_ERROR_FD
+               exec AS_MESSAGE_FD>&$PSI_MESSAGE_FD 2>&$PSI_ERROR_FD
                
                dnl done
                AS_ECHO_N(["$1 "])
@@ -237,6 +237,9 @@ typedef bool _Bool;
 #ifdef HAVE_ARPA_NAMESER_H
 # include <arpa/nameser.h>
 #endif
+#ifdef HAVE_ARPA_INET_H
+# include <arpa/inet.h>
+#endif
 #ifdef HAVE_FCNTL_H
 # include <fcntl.h>
 #endif