mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Moved the warning about MT and no getpwuid_r from gutils.c to configure
-Yosh
This commit is contained in:
parent
448e792b0a
commit
90ca4040f6
@ -1,3 +1,9 @@
|
||||
Sat Jan 23 20:40:06 PST 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gutils.c: removed the #warning about MT without getpwuid_r
|
||||
|
||||
* configure.in: and moved it here
|
||||
|
||||
Sat Jan 23 22:45:59 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* ghash.c (g_hash_table_lookup_node, g_hash_table_lookup,
|
||||
|
@ -1,3 +1,9 @@
|
||||
Sat Jan 23 20:40:06 PST 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gutils.c: removed the #warning about MT without getpwuid_r
|
||||
|
||||
* configure.in: and moved it here
|
||||
|
||||
Sat Jan 23 22:45:59 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* ghash.c (g_hash_table_lookup_node, g_hash_table_lookup,
|
||||
|
@ -1,3 +1,9 @@
|
||||
Sat Jan 23 20:40:06 PST 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gutils.c: removed the #warning about MT without getpwuid_r
|
||||
|
||||
* configure.in: and moved it here
|
||||
|
||||
Sat Jan 23 22:45:59 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* ghash.c (g_hash_table_lookup_node, g_hash_table_lookup,
|
||||
|
@ -1,3 +1,9 @@
|
||||
Sat Jan 23 20:40:06 PST 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gutils.c: removed the #warning about MT without getpwuid_r
|
||||
|
||||
* configure.in: and moved it here
|
||||
|
||||
Sat Jan 23 22:45:59 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* ghash.c (g_hash_table_lookup_node, g_hash_table_lookup,
|
||||
|
@ -1,3 +1,9 @@
|
||||
Sat Jan 23 20:40:06 PST 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gutils.c: removed the #warning about MT without getpwuid_r
|
||||
|
||||
* configure.in: and moved it here
|
||||
|
||||
Sat Jan 23 22:45:59 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* ghash.c (g_hash_table_lookup_node, g_hash_table_lookup,
|
||||
|
@ -1,3 +1,9 @@
|
||||
Sat Jan 23 20:40:06 PST 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gutils.c: removed the #warning about MT without getpwuid_r
|
||||
|
||||
* configure.in: and moved it here
|
||||
|
||||
Sat Jan 23 22:45:59 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* ghash.c (g_hash_table_lookup_node, g_hash_table_lookup,
|
||||
|
@ -1,3 +1,9 @@
|
||||
Sat Jan 23 20:40:06 PST 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gutils.c: removed the #warning about MT without getpwuid_r
|
||||
|
||||
* configure.in: and moved it here
|
||||
|
||||
Sat Jan 23 22:45:59 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* ghash.c (g_hash_table_lookup_node, g_hash_table_lookup,
|
||||
|
@ -1,3 +1,9 @@
|
||||
Sat Jan 23 20:40:06 PST 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gutils.c: removed the #warning about MT without getpwuid_r
|
||||
|
||||
* configure.in: and moved it here
|
||||
|
||||
Sat Jan 23 22:45:59 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* ghash.c (g_hash_table_lookup_node, g_hash_table_lookup,
|
||||
|
10
configure.in
10
configure.in
@ -570,6 +570,10 @@ LIBS_NOT_FOUND_1="I can't find the libraries for the thread implementation
|
||||
LIBS_NOT_FOUND_2=". Please choose another thread implementation or
|
||||
provide informationon your thread implementation."
|
||||
|
||||
FUNC_NO_GETPWUID_R="the 'g_get_(user_name|real_name|home_dir|tmp_dir)'
|
||||
functions will not be MT-safe during their first call because
|
||||
there is no 'getpwuid_r' on your system."
|
||||
|
||||
dnl determination of thread implementation
|
||||
dnl ***************************************
|
||||
|
||||
@ -706,6 +710,12 @@ if test x"$have_threads" != xnone; then
|
||||
LIBS="$glib_save_LIBS"
|
||||
fi
|
||||
|
||||
if test "x$enable_threads" = "xyes"; then
|
||||
if test "$ac_cv_func_getpwuid_r" != "yes"; then
|
||||
AC_MSG_WARN($FUNC_NO_GETPWUID_R)
|
||||
fi
|
||||
fi
|
||||
|
||||
dnl determination of G_THREAD_CFLAGS
|
||||
dnl ********************************
|
||||
|
||||
|
@ -479,12 +479,6 @@ g_get_any_init (void)
|
||||
|
||||
# else /* !HAVE_GETPWUID_R */
|
||||
|
||||
# ifdef G_THREADS_ENABLED
|
||||
# warning "the `g_get_(user_name|real_name|home_dir|tmp_dir)'"
|
||||
# warning "functions will not be MT-safe during their first call"
|
||||
# warning "because there is no `getpwuid_r' on your system."
|
||||
# endif /* G_THREADS_ENABLED */
|
||||
|
||||
setpwent ();
|
||||
pw = getpwuid (getuid ());
|
||||
endpwent ();
|
||||
|
6
gutils.c
6
gutils.c
@ -479,12 +479,6 @@ g_get_any_init (void)
|
||||
|
||||
# else /* !HAVE_GETPWUID_R */
|
||||
|
||||
# ifdef G_THREADS_ENABLED
|
||||
# warning "the `g_get_(user_name|real_name|home_dir|tmp_dir)'"
|
||||
# warning "functions will not be MT-safe during their first call"
|
||||
# warning "because there is no `getpwuid_r' on your system."
|
||||
# endif /* G_THREADS_ENABLED */
|
||||
|
||||
setpwent ();
|
||||
pw = getpwuid (getuid ());
|
||||
endpwent ();
|
||||
|
Loading…
Reference in New Issue
Block a user