This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
intl patches (31)
- From: Bruno Haible <haible at ilog dot fr>
- To: libc-alpha at sources dot redhat dot com
- Date: Thu, 22 Nov 2001 15:04:37 +0100 (CET)
- Subject: intl patches (31)
Portability to some non-POSIX system requires fallback definitions for
getuid(), getgid(), geteuid(), getegid().
2001-04-30 Bruno Haible <bruno@clisp.org>
* intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
default definitions. Needed for mingw32.
--- glibc-20011110/intl/dcigettext.c.bak Thu Nov 22 02:00:35 2001
+++ glibc-20011110/intl/dcigettext.c Thu Nov 22 01:12:10 2001
@@ -332,6 +332,18 @@
# define ENABLE_SECURE __libc_enable_secure
# define DETERMINE_SECURE
#else
+# if !defined _LIBC && !defined HAVE_GETUID
+# define getuid() 0
+# endif
+# if !defined _LIBC && !defined HAVE_GETGID
+# define getgid() 0
+# endif
+# if !defined _LIBC && !defined HAVE_GETEUID
+# define geteuid() getuid()
+# endif
+# if !defined _LIBC && !defined HAVE_GETEGID
+# define getegid() getgid()
+# endif
static int enable_secure;
# define ENABLE_SECURE (enable_secure == 1)
# define DETERMINE_SECURE \