summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-08-14 04:16:00 +0000
committerRichard M. Stallman <rms@gnu.org>1997-08-14 04:16:00 +0000
commit8742aa53f4ffb5c4cea927d8232ab9c5da277242 (patch)
tree09437c1ac7bc12bd9aa9145ea94030416240d5d5
parent4e3b19135f0768c77b7e85fc4c25ae0813f59ada (diff)
downloademacs-8742aa53f4ffb5c4cea927d8232ab9c5da277242.tar.gz
(main): use SOCKLEN_TYPE for fromlen, if it is defined.
-rw-r--r--lib-src/emacsserver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib-src/emacsserver.c b/lib-src/emacsserver.c
index 9fbf3e86516..ad5285de453 100644
--- a/lib-src/emacsserver.c
+++ b/lib-src/emacsserver.c
@@ -206,7 +206,11 @@ main (argc, argv)
{
char system_name[32];
int s, infd;
+#ifdef SOCKLEN_TYPE
+ SOCKLEN_TYPE fromlen;
+#else
size_t fromlen;
+#endif
struct sockaddr_un server, fromunix;
char *homedir;
char *str, string[BUFSIZ], code[BUFSIZ];