mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-02 11:09:29 +00:00
Make it compile under -current again.
Reported by: Satoshi's log file
This commit is contained in:
parent
50adbbc64b
commit
5c41e9cace
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=17365
20
editors/xemacs-devel/files/patch-ai
Normal file
20
editors/xemacs-devel/files/patch-ai
Normal file
@ -0,0 +1,20 @@
|
||||
--- 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 ())), \
|
20
editors/xemacs/files/patch-ai
Normal file
20
editors/xemacs/files/patch-ai
Normal file
@ -0,0 +1,20 @@
|
||||
--- 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 ())), \
|
20
editors/xemacs20/files/patch-ai
Normal file
20
editors/xemacs20/files/patch-ai
Normal file
@ -0,0 +1,20 @@
|
||||
--- 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 ())), \
|
20
editors/xemacs21/files/patch-ai
Normal file
20
editors/xemacs21/files/patch-ai
Normal file
@ -0,0 +1,20 @@
|
||||
--- 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 ())), \
|
Loading…
x
Reference in New Issue
Block a user