aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman1997-07-17 23:49:47 +0000
committerRichard M. Stallman1997-07-17 23:49:47 +0000
commit7543028ea0375c194aea1dadadcb286b571be4ab (patch)
tree39c477b48177420bf5b4a1753e8d269ade29e940 /lib-src
parent775f2461405df9dec4842b80f32bc8564e44ee84 (diff)
downloademacs-7543028ea0375c194aea1dadadcb286b571be4ab.tar.gz
emacs-7543028ea0375c194aea1dadadcb286b571be4ab.zip
[HAVE_UNISTD_H]: Include unistd.h.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/fakemail.c11
1 files changed, 8 insertions, 3 deletions
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 ()
61#include <ctype.h> 61#include <ctype.h>
62#include <time.h> 62#include <time.h>
63#include <pwd.h> 63#include <pwd.h>
64
65/* This is to declare cuserid. */
66#ifdef HAVE_UNISTD_H
67#include <unistd.h>
68#endif
64 69
65/* Type definitions */ 70/* Type definitions */
66 71
@@ -368,9 +373,9 @@ make_file_preface ()
368 user_length = strlen (temp); 373 user_length = strlen (temp);
369 the_user = alloc_string (user_length + 1); 374 the_user = alloc_string (user_length + 1);
370 strcpy (the_user, temp); 375 strcpy (the_user, temp);
371 the_string = alloc_string (3 + prefix_length + 376 the_string = alloc_string (3 + prefix_length
372 user_length + 377 + user_length
373 date_length); 378 + date_length);
374 temp = the_string; 379 temp = the_string;
375 strcpy (temp, FROM_PREFIX); 380 strcpy (temp, FROM_PREFIX);
376 temp = &temp[prefix_length]; 381 temp = &temp[prefix_length];