From: Bruno Haible Date: Mon, 7 May 2001 13:09:04 +0000 (+0000) Subject: mingw32 portability. X-Git-Tag: v0.10.38~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=669139b5730d078b0ff1e23af1546f22ee8c964c;p=thirdparty%2Fgettext.git mingw32 portability. --- diff --git a/intl/ChangeLog b/intl/ChangeLog index 7e76a1579..f84864770 100644 --- a/intl/ChangeLog +++ b/intl/ChangeLog @@ -1,3 +1,8 @@ +2001-04-30 Bruno Haible + + * dcigettext.c (getuid, getgid, geteuid, getegid): Provide default + definitions. Needed for mingw32. + 2001-04-19 Bruno Haible * gettext-0.10.37 released. diff --git a/intl/dcigettext.c b/intl/dcigettext.c index 6ee9d17e3..8456550d0 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 \ diff --git a/m4/ChangeLog b/m4/ChangeLog index 29da10065..3106b48de 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,8 @@ +2001-04-30 Bruno Haible + + * gettext.m4 (AM_GNU_GETTEXT): Also check for the getegid, geteuid, + getgid, getuid functions. Needed for mingw32. + 2001-04-27 H. J. Lu Bruno Haible diff --git a/m4/gettext.m4 b/m4/gettext.m4 index 658785bf3..c91dac992 100644 --- a/m4/gettext.m4 +++ b/m4/gettext.m4 @@ -257,9 +257,9 @@ AC_DEFUN([AM_GNU_GETTEXT], AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ stdlib.h string.h unistd.h sys/param.h]) - AC_CHECK_FUNCS([feof_unlocked fgets_unlocked getcwd mempcpy munmap putenv \ -setenv setlocale stpcpy strchr strcasecmp strdup tsearch \ -__argz_count __argz_stringify __argz_next]) + AC_CHECK_FUNCS([feof_unlocked fgets_unlocked getcwd getegid geteuid \ +getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \ +strdup tsearch __argz_count __argz_stringify __argz_next]) AM_ICONV AM_LANGINFO_CODESET