]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
mingw32 portability.
authorBruno Haible <bruno@clisp.org>
Mon, 7 May 2001 13:09:04 +0000 (13:09 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 28 Jun 2009 14:35:47 +0000 (16:35 +0200)
intl/ChangeLog
intl/dcigettext.c
m4/ChangeLog
m4/gettext.m4

index 7e76a15795c5e3543cfb6ce8404b45edfb1d78c6..f8486477089143d314f2da09616547878461438c 100644 (file)
@@ -1,3 +1,8 @@
+2001-04-30  Bruno Haible  <haible@clisp.cons.org>
+
+       * dcigettext.c (getuid, getgid, geteuid, getegid): Provide default
+       definitions. Needed for mingw32.
+
 2001-04-19  Bruno Haible  <haible@clisp.cons.org>
 
        * gettext-0.10.37 released.
index 6ee9d17e3935645d1b2bc52a756809392b092433..8456550d03bb243928713b655342222370b82979 100644 (file)
@@ -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 \
index 29da100658169718c61f60da28b12f25980d2d2f..3106b48de4c19d80817c8f47d407742f05da029f 100644 (file)
@@ -1,3 +1,8 @@
+2001-04-30  Bruno Haible  <haible@clisp.cons.org>
+
+       * gettext.m4 (AM_GNU_GETTEXT): Also check for the getegid, geteuid,
+       getgid, getuid functions. Needed for mingw32.
+
 2001-04-27  H. J. Lu  <hjl@lucon.org>
             Bruno Haible  <haible@clisp.cons.org>
 
index 658785bf31209b592781d7eca0e2f0513e4ef1fb..c91dac992903c9661f97a228906c85be62f07fbb 100644 (file)
@@ -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