diff options
author | Bruno Haible <bruno@clisp.org> | 2001-04-30 16:39:18 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2001-04-30 16:39:18 +0000 |
commit | 822a0b9e9ebf2affc3d4f75844b0459d41bd0c0a (patch) | |
tree | e64edd00c416c373237f6f5305bd65b534a44b8a /intl/dcigettext.c | |
parent | 58a82ba15a4fde5489d5892ebdca450ee8f7862d (diff) | |
download | external_gettext-822a0b9e9ebf2affc3d4f75844b0459d41bd0c0a.zip external_gettext-822a0b9e9ebf2affc3d4f75844b0459d41bd0c0a.tar.gz external_gettext-822a0b9e9ebf2affc3d4f75844b0459d41bd0c0a.tar.bz2 |
Mingw32 portability.
Diffstat (limited to 'intl/dcigettext.c')
-rw-r--r-- | intl/dcigettext.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/intl/dcigettext.c b/intl/dcigettext.c index 6ee9d17..8456550 100644 --- a/intl/dcigettext.c +++ b/intl/dcigettext.c @@ -370,6 +370,18 @@ __libc_rwlock_define_initialized (, _nl_state_lock) # 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 \ |