1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/chinese/xemacs/files/patch-ai
Foxfair Hu ec6f4d2153 Import a new XIM-enabled(Chinese specified) XEmacs 20.4.
Submitted by : Keith Jang <keith@freebsd.sinica.edu.tw>
2000-01-04 03:12:24 +00:00

21 lines
565 B
Plaintext

--- lib-src/fakemail.c.orig Tue Mar 23 22:09:58 1999
+++ lib-src/fakemail.c Tue Mar 23 22:12:20 1999
@@ -157,9 +157,17 @@
extern char *malloc (), *realloc ();
#endif
+#if defined(__FreeBSD_version) && __FreeBSD_version >= 400000
+#define CURRENT_USER
+#endif
+
#ifdef CURRENT_USER
extern struct passwd *getpwuid ();
+#if defined(__FreeBSD_version) && __FreeBSD_version >= 400000
+extern uid_t geteuid ();
+#else
extern unsigned short geteuid ();
+#endif
static struct passwd *my_entry;
#define cuserid(s) \
(my_entry = getpwuid (((int) geteuid ())), \