Mercurial > hg > xemacs-beta
diff lib-src/gnuslib.c @ 155:43dd3413c7c7 r20-3b4
Import from CVS: tag r20-3b4
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:39:39 +0200 |
parents | 538048ae2ab8 |
children | 929b76928fce |
line wrap: on
line diff
--- a/lib-src/gnuslib.c Mon Aug 13 09:38:27 2007 +0200 +++ b/lib-src/gnuslib.c Mon Aug 13 09:39:39 2007 +0200 @@ -107,19 +107,17 @@ } else { /* no hostname given. Use unix-domain/sysv-ipc, or * internet-domain connection to local host if they're not available. */ -#ifdef UNIX_DOMAIN_SOCKETS +#if defined(UNIX_DOMAIN_SOCKETS) *s = connect_to_unix_server(); return (int) CONN_UNIX; -#endif -#ifdef SYSV_IPC +#elif defined(SYSV_IPC) *s = connect_to_ipc_server(); return (int) CONN_IPC; -#endif -#ifdef INTERNET_DOMAIN_SOCKETS +#elif defined(INTERNET_DOMAIN_SOCKETS) gethostname(localhost,HOSTNAMSZ); /* use this host by default */ *s = connect_to_internet_server(localhost, portarg); return (int) CONN_INTERNET; -#endif +#endif /* IPC type */ } }