Mercurial > hg > xemacs-beta
diff lib-src/emacsserver.c @ 40:7e54bd776075 r19-15b103
Import from CVS: tag r19-15b103
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:54:25 +0200 |
parents | 376386a54a3c |
children | 8b8b7f3559a2 |
line wrap: on
line diff
--- a/lib-src/emacsserver.c Mon Aug 13 08:54:02 2007 +0200 +++ b/lib-src/emacsserver.c Mon Aug 13 08:54:25 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 ()