Mercurial > hg > xemacs-beta
diff lib-src/emacsserver.c @ 114:8619ce7e4c50 r20-1b9
Import from CVS: tag r20-1b9
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:21:54 +0200 |
parents | 131b0175ea99 |
children | 9f59509498e1 |
line wrap: on
line diff
--- a/lib-src/emacsserver.c Mon Aug 13 09:20:50 2007 +0200 +++ b/lib-src/emacsserver.c Mon Aug 13 09:21:54 2007 +0200 @@ -61,13 +61,18 @@ #include <sys/types.h> #include <sys/file.h> -#include <sys/socket.h> #include <sys/signal.h> #include <sys/stat.h> /* Needed for chmod, at least on Linux */ #include <sys/un.h> #include <stdio.h> #include <errno.h> #include "../src/sysproc.h" /* Needed for select */ +#ifndef SOCK_STREAM +/* this is normally included by src/sysproc.h. might be safe to omit + * it entirely. lousy ultrix's sys/socket.h chokes if it's included + * twice, so we can't include unconditionally. */ +#include <sys/socket.h> +#endif void main ()