This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
intl patches (5)
- From: Bruno Haible <bruno at clisp dot org>
- To: libc-alpha at sources dot redhat dot com
- Date: Wed, 11 Dec 2002 19:29:03 +0100 (CET)
- Subject: intl patches (5)
This provides fallbacks for porting to some Unixlike systems. No effect
inside glibc.
2001-04-30 Bruno Haible <bruno@clisp.org>
* dcigettext.c (getuid, getgid, geteuid, getegid): Provide default
definitions. Needed for mingw32.
--- glibc-20021126/intl/dcigettext.c.bak Mon Nov 4 13:25:25 2002
+++ glibc-20021126/intl/dcigettext.c Wed Dec 11 15:19:01 2002
@@ -346,6 +363,18 @@
# define ENABLE_SECURE __libc_enable_secure
# define DETERMINE_SECURE
#else
+# ifndef HAVE_GETUID
+# define getuid() 0
+# endif
+# ifndef HAVE_GETGID
+# define getgid() 0
+# endif
+# ifndef HAVE_GETEUID
+# define geteuid() getuid()
+# endif
+# ifndef HAVE_GETEGID
+# define getegid() getgid()
+# endif
static int enable_secure;
# define ENABLE_SECURE (enable_secure == 1)
# define DETERMINE_SECURE \