projects
/
chise
/
xemacs-chise.git-
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(U+8C6A): Apply new conventions for glyph granularity.
[chise/xemacs-chise.git-]
/
lib-src
/
fakemail.c
diff --git
a/lib-src/fakemail.c
b/lib-src/fakemail.c
index
a074fa8
..
13976ba
100644
(file)
--- a/
lib-src/fakemail.c
+++ b/
lib-src/fakemail.c
@@
-149,9
+149,17
@@
extern int fclose (), pclose ();
extern char *malloc (), *realloc ();
#endif
extern char *malloc (), *realloc ();
#endif
+#if defined(__FreeBSD_version) && __FreeBSD_version >= 400000
+#define CURRENT_USER
+#endif
+
#ifdef CURRENT_USER
extern struct passwd *getpwuid ();
#ifdef CURRENT_USER
extern struct passwd *getpwuid ();
+#if defined(__FreeBSD_version) && __FreeBSD_version >= 400000
+extern uid_t geteuid ();
+#else
extern unsigned short geteuid ();
extern unsigned short geteuid ();
+#endif
static struct passwd *my_entry;
#define cuserid(s) \
(my_entry = getpwuid ((int) geteuid ()), \
static struct passwd *my_entry;
#define cuserid(s) \
(my_entry = getpwuid ((int) geteuid ()), \