Mercurial > emacs
diff lib-src/fakemail.c @ 18841:36704f455f32
[HAVE_UNISTD_H]: Include unistd.h.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Thu, 17 Jul 1997 23:49:47 +0000 |
| parents | 32f82ca8b41f |
| children | 48690fd8d40a |
line wrap: on
line diff
--- a/lib-src/fakemail.c Thu Jul 17 21:59:31 1997 +0000 +++ b/lib-src/fakemail.c Thu Jul 17 23:49:47 1997 +0000 @@ -61,6 +61,11 @@ #include <ctype.h> #include <time.h> #include <pwd.h> + +/* This is to declare cuserid. */ +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif /* Type definitions */ @@ -368,9 +373,9 @@ 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];
