aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2016-01-30 03:57:54 +0100
committerLars Ingebrigtsen2016-01-30 03:57:54 +0100
commite99dc4a7490a471cbdf421c8b712d8c09479e592 (patch)
tree84eb18d979f05b7a8bbe6c305a833cdb92687d57
parent233e89cf2317a1df410fe01ce20d66293517b500 (diff)
downloademacs-e99dc4a7490a471cbdf421c8b712d8c09479e592.tar.gz
emacs-e99dc4a7490a471cbdf421c8b712d8c09479e592.zip
Compilation for for non-GNU systems
* process.c (Fmake_network_process): Make compilation work again on hosts that don't have getaddrinfo_a.
-rw-r--r--src/process.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/process.c b/src/process.c
index 168d9255f1e..aef74d3d474 100644
--- a/src/process.c
+++ b/src/process.c
@@ -3785,7 +3785,9 @@ usage: (make-network-process &rest ARGS) */)
3785 p->port = port; 3785 p->port = port;
3786 p->socktype = socktype; 3786 p->socktype = socktype;
3787 p->ai_protocol = ai_protocol; 3787 p->ai_protocol = ai_protocol;
3788#ifdef HAVE_GETADDRINFO_A
3788 p->dns_requests = NULL; 3789 p->dns_requests = NULL;
3790#endif
3789 3791
3790 unbind_to (count, Qnil); 3792 unbind_to (count, Qnil);
3791 3793
@@ -3811,6 +3813,7 @@ usage: (make-network-process &rest ARGS) */)
3811#endif 3813#endif
3812 } 3814 }
3813 3815
3816#ifdef HAVE_GETADDRINFO_A
3814 /* If we're doing async address resolution, the list of addresses 3817 /* If we're doing async address resolution, the list of addresses
3815 here will be nil, so we postpone connecting to the server. */ 3818 here will be nil, so we postpone connecting to the server. */
3816 if (!p->is_server && NILP (ip_addresses)) 3819 if (!p->is_server && NILP (ip_addresses))
@@ -3830,6 +3833,9 @@ usage: (make-network-process &rest ARGS) */)
3830 { 3833 {
3831 connect_network_socket (proc, ip_addresses); 3834 connect_network_socket (proc, ip_addresses);
3832 } 3835 }
3836#endif /* HAVE_GETADDRINFO_A */
3837
3838 connect_network_socket (proc, ip_addresses);
3833 3839
3834 return proc; 3840 return proc;
3835} 3841}