Apply a patch which may make GLib work on BeOS again. (#309157, Kian

2005-06-30  Matthias Clasen  <mclasen@redhat.com>

	Apply a patch which may make GLib work on BeOS again.
	(#309157, Kian Duffy)

	* glib/gmain.c: Update the BeOS includes.

	* glib/gstdio.c:
	* glib/gutils.c (g_find_program_in_path):
	* glib/gbacktrace.c (g_on_error_stack_trace): Use the UNIX
	implementation on BeOS, as well.

	* configure.in: Don't put glib 1.0 into G_MODULE_LIBS, even
	on BeOS.
This commit is contained in:
Matthias Clasen 2005-06-30 19:43:48 +00:00 committed by Matthias Clasen
parent c888581c43
commit b78a0792a4
9 changed files with 59 additions and 6 deletions

View File

@ -1,5 +1,18 @@
2005-06-30 Matthias Clasen <mclasen@redhat.com>
Apply a patch which may make GLib work on BeOS again.
(#309157, Kian Duffy)
* glib/gmain.c: Update the BeOS includes.
* glib/gstdio.c:
* glib/gutils.c (g_find_program_in_path):
* glib/gbacktrace.c (g_on_error_stack_trace): Use the UNIX
implementation on BeOS, as well.
* configure.in: Don't put glib 1.0 into G_MODULE_LIBS, even
on BeOS.
* NEWS: Updates
2005-06-26 Tor Lillqvist <tml@novell.com>

View File

@ -1,5 +1,18 @@
2005-06-30 Matthias Clasen <mclasen@redhat.com>
Apply a patch which may make GLib work on BeOS again.
(#309157, Kian Duffy)
* glib/gmain.c: Update the BeOS includes.
* glib/gstdio.c:
* glib/gutils.c (g_find_program_in_path):
* glib/gbacktrace.c (g_on_error_stack_trace): Use the UNIX
implementation on BeOS, as well.
* configure.in: Don't put glib 1.0 into G_MODULE_LIBS, even
on BeOS.
* NEWS: Updates
2005-06-26 Tor Lillqvist <tml@novell.com>

View File

@ -1,5 +1,18 @@
2005-06-30 Matthias Clasen <mclasen@redhat.com>
Apply a patch which may make GLib work on BeOS again.
(#309157, Kian Duffy)
* glib/gmain.c: Update the BeOS includes.
* glib/gstdio.c:
* glib/gutils.c (g_find_program_in_path):
* glib/gbacktrace.c (g_on_error_stack_trace): Use the UNIX
implementation on BeOS, as well.
* configure.in: Don't put glib 1.0 into G_MODULE_LIBS, even
on BeOS.
* NEWS: Updates
2005-06-26 Tor Lillqvist <tml@novell.com>

View File

@ -1,5 +1,18 @@
2005-06-30 Matthias Clasen <mclasen@redhat.com>
Apply a patch which may make GLib work on BeOS again.
(#309157, Kian Duffy)
* glib/gmain.c: Update the BeOS includes.
* glib/gstdio.c:
* glib/gutils.c (g_find_program_in_path):
* glib/gbacktrace.c (g_on_error_stack_trace): Use the UNIX
implementation on BeOS, as well.
* configure.in: Don't put glib 1.0 into G_MODULE_LIBS, even
on BeOS.
* NEWS: Updates
2005-06-26 Tor Lillqvist <tml@novell.com>

View File

@ -1106,7 +1106,7 @@ fi
dnl *** load_image (BeOS)
if test -z "$G_MODULE_IMPL" && test "x$glib_native_beos" = "xyes"; then
AC_CHECK_LIB(root, load_image,
[G_MODULE_LIBS="-lbe -lroot -lglib"
[G_MODULE_LIBS="-lbe -lroot -lglib-2.0 "
G_MODULE_LIBS_EXTRA="-L\$(top_builddir_full)/.libs"
G_MODULE_PLUGIN_LIBS="-L\$(top_builddir_full)/gmodule/.libs -lgmodule"
G_MODULE_IMPL=G_MODULE_IMPL_BEOS],
@ -1705,7 +1705,7 @@ fi
case $host in
*-*-beos*)
G_THREAD_LIBS="-lbe -lroot -lglib "
G_THREAD_LIBS="-lbe -lroot -lglib-2.0 "
G_THREAD_LIBS_EXTRA="-L\$(top_builddir_full)/.libs"
;;
*)

View File

@ -157,7 +157,7 @@ g_on_error_query (const gchar *prg_name)
void
g_on_error_stack_trace (const gchar *prg_name)
{
#ifdef G_OS_UNIX
#if defined(G_OS_UNIX) || defined(G_OS_BEOS)
pid_t pid;
gchar buf[16];
gchar *args[4] = { "gdb", NULL, NULL, NULL };

View File

@ -68,7 +68,8 @@
#endif /* G_OS_WIN32 */
#ifdef G_OS_BEOS
#include <net/socket.h>
#include <sys/socket.h>
#include <sys/wait.h>
#endif /* G_OS_BEOS */
#ifdef G_OS_UNIX

View File

@ -43,7 +43,7 @@
#include "galias.h"
#if !defined (G_OS_UNIX) && !defined (G_OS_WIN32)
#if !defined (G_OS_UNIX) && !defined (G_OS_WIN32) && !defined (G_OS_BEOS)
#error Please port this to your operating system
#endif

View File

@ -374,7 +374,7 @@ g_find_program_in_path (const gchar *program)
}
path = g_getenv ("PATH");
#ifdef G_OS_UNIX
#if defined(G_OS_UNIX) || defined(G_OS_BEOS)
if (path == NULL)
{
/* There is no `PATH' in the environment. The default