aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2002-03-21 13:01:14 +0000
committerKim F. Storm2002-03-21 13:01:14 +0000
commitc2bd2c26f3b343789ce83068f620c800b1b38ce0 (patch)
treea723e52b52af8d9fb57a83717596687bc8cd0d02 /src
parent60a501d771ad9d088f6561de89489e592f71af3e (diff)
downloademacs-c2bd2c26f3b343789ce83068f620c800b1b38ce0.tar.gz
emacs-c2bd2c26f3b343789ce83068f620c800b1b38ce0.zip
(init_process): Only provide make-network-process feature and
subfeatures if HAVE_SOCKETS.
Diffstat (limited to 'src')
-rw-r--r--src/process.c35
1 files changed, 19 insertions, 16 deletions
diff --git a/src/process.c b/src/process.c
index 33a4c2109d7..f298b51c2b0 100644
--- a/src/process.c
+++ b/src/process.c
@@ -6011,7 +6011,6 @@ void
6011init_process () 6011init_process ()
6012{ 6012{
6013 register int i; 6013 register int i;
6014 Lisp_Object subfeatures;
6015 6014
6016#ifdef SIGCHLD 6015#ifdef SIGCHLD
6017#ifndef CANNOT_DUMP 6016#ifndef CANNOT_DUMP
@@ -6039,50 +6038,54 @@ init_process ()
6039 bzero (datagram_address, sizeof datagram_address); 6038 bzero (datagram_address, sizeof datagram_address);
6040#endif 6039#endif
6041 6040
6041#ifdef HAVE_SOCKETS
6042 {
6043 Lisp_Object subfeatures = Qnil;
6042#define ADD_SUBFEATURE(key, val) \ 6044#define ADD_SUBFEATURE(key, val) \
6043 subfeatures = Fcons (Fcons (key, Fcons (val, Qnil)), subfeatures) 6045 subfeatures = Fcons (Fcons (key, Fcons (val, Qnil)), subfeatures)
6044 6046
6045 subfeatures = Qnil;
6046#ifdef NON_BLOCKING_CONNECT 6047#ifdef NON_BLOCKING_CONNECT
6047 ADD_SUBFEATURE (QCnowait, Qt); 6048 ADD_SUBFEATURE (QCnowait, Qt);
6048#endif 6049#endif
6049#ifdef DATAGRAM_SOCKETS 6050#ifdef DATAGRAM_SOCKETS
6050 ADD_SUBFEATURE (QCtype, Qdatagram); 6051 ADD_SUBFEATURE (QCtype, Qdatagram);
6051#endif 6052#endif
6052#ifdef HAVE_LOCAL_SOCKETS 6053#ifdef HAVE_LOCAL_SOCKETS
6053 ADD_SUBFEATURE (QCfamily, Qlocal); 6054 ADD_SUBFEATURE (QCfamily, Qlocal);
6054#endif 6055#endif
6055#ifdef HAVE_GETSOCKNAME 6056#ifdef HAVE_GETSOCKNAME
6056 ADD_SUBFEATURE (QCservice, Qt); 6057 ADD_SUBFEATURE (QCservice, Qt);
6057#endif 6058#endif
6058#ifndef TERM 6059#ifndef TERM
6059 ADD_SUBFEATURE (QCserver, Qt); 6060 ADD_SUBFEATURE (QCserver, Qt);
6060#endif 6061#endif
6061#ifdef SO_BINDTODEVICE 6062#ifdef SO_BINDTODEVICE
6062 ADD_SUBFEATURE (QCoptions, intern ("bindtodevice")); 6063 ADD_SUBFEATURE (QCoptions, intern ("bindtodevice"));
6063#endif 6064#endif
6064#ifdef SO_BROADCAST 6065#ifdef SO_BROADCAST
6065 ADD_SUBFEATURE (QCoptions, intern ("broadcast")); 6066 ADD_SUBFEATURE (QCoptions, intern ("broadcast"));
6066#endif 6067#endif
6067#ifdef SO_DONTROUTE 6068#ifdef SO_DONTROUTE
6068 ADD_SUBFEATURE (QCoptions, intern ("dontroute")); 6069 ADD_SUBFEATURE (QCoptions, intern ("dontroute"));
6069#endif 6070#endif
6070#ifdef SO_KEEPALIVE 6071#ifdef SO_KEEPALIVE
6071 ADD_SUBFEATURE (QCoptions, intern ("keepalive")); 6072 ADD_SUBFEATURE (QCoptions, intern ("keepalive"));
6072#endif 6073#endif
6073#ifdef SO_LINGER 6074#ifdef SO_LINGER
6074 ADD_SUBFEATURE (QCoptions, intern ("linger")); 6075 ADD_SUBFEATURE (QCoptions, intern ("linger"));
6075#endif 6076#endif
6076#ifdef SO_OOBINLINE 6077#ifdef SO_OOBINLINE
6077 ADD_SUBFEATURE (QCoptions, intern ("oobinline")); 6078 ADD_SUBFEATURE (QCoptions, intern ("oobinline"));
6078#endif 6079#endif
6079#ifdef SO_PRIORITY 6080#ifdef SO_PRIORITY
6080 ADD_SUBFEATURE (QCoptions, intern ("priority")); 6081 ADD_SUBFEATURE (QCoptions, intern ("priority"));
6081#endif 6082#endif
6082#ifdef SO_REUSEADDR 6083#ifdef SO_REUSEADDR
6083 ADD_SUBFEATURE (QCoptions, intern ("reuseaddr")); 6084 ADD_SUBFEATURE (QCoptions, intern ("reuseaddr"));
6084#endif 6085#endif
6085 Fprovide (intern ("make-network-process"), subfeatures); 6086 Fprovide (intern ("make-network-process"), subfeatures);
6087 }
6088#endif /* HAVE_SOCKETS */
6086} 6089}
6087 6090
6088void 6091void