From: Bruno Haible Date: Mon, 30 Apr 2001 16:39:18 +0000 (+0000) Subject: Mingw32 portability. X-Git-Tag: v0.11~749 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=822a0b9e9ebf2affc3d4f75844b0459d41bd0c0a;p=thirdparty%2Fgettext.git Mingw32 portability. --- diff --git a/intl/ChangeLog b/intl/ChangeLog index d47b754c7..88f356d34 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-30 Bruno Haible Silence "gcc -Wall -Wwrite-strings" warnings. 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