From: Richard M. Stallman Date: Thu, 17 Jul 1997 23:49:47 +0000 (+0000) Subject: [HAVE_UNISTD_H]: Include unistd.h. X-Git-Tag: emacs-20.1~1105 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7543028ea0375c194aea1dadadcb286b571be4ab;p=emacs.git [HAVE_UNISTD_H]: Include unistd.h. --- diff --git a/lib-src/fakemail.c b/lib-src/fakemail.c index 1deeec352b2..73898c6fb87 100644 --- a/lib-src/fakemail.c +++ b/lib-src/fakemail.c @@ -61,6 +61,11 @@ main () #include #include #include + +/* This is to declare cuserid. */ +#ifdef HAVE_UNISTD_H +#include +#endif /* Type definitions */ @@ -368,9 +373,9 @@ make_file_preface () user_length = strlen (temp); the_user = alloc_string (user_length + 1); strcpy (the_user, temp); - the_string = alloc_string (3 + prefix_length + - user_length + - date_length); + the_string = alloc_string (3 + prefix_length + + user_length + + date_length); temp = the_string; strcpy (temp, FROM_PREFIX); temp = &temp[prefix_length];