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 b137ec6484f23201d1ab4e7e5ea60013deb78ad2..67878346db61e5765024af4e225c09502888b94d 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