summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-07-17 23:49:47 +0000
committerRichard M. Stallman <rms@gnu.org>1997-07-17 23:49:47 +0000
commit122570026a517de3ca36cadfa5b296c31298ab60 (patch)
treef099de0c6a7884a75c8570c71008016354e45cf0 /lib-src
parent14aee5487ca94e754c97051706a78923cdabc6c2 (diff)
downloademacs-122570026a517de3ca36cadfa5b296c31298ab60.tar.gz
[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 ()
#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 @@ 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];