mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-05 02:36:19 +01:00
The "extern char* sys_siglist" declaration breaks systems with different
Tue Jan 19 00:44:24 1999 Josh MacDonald <jmacd@axis.hip.berkeley.edu> * gstrfuncs.c (g_strsignal): The "extern char* sys_siglist" declaration breaks systems with different declarations, like mine (FreeBSD). So, I added a configuration variable to decide whether the declaration is neccesary. Change also appears on line 275 of configure.in.
This commit is contained in:
parent
a478fc7a3f
commit
e6c71cedb9
@ -1,3 +1,11 @@
|
||||
Tue Jan 19 00:44:24 1999 Josh MacDonald <jmacd@axis.hip.berkeley.edu>
|
||||
|
||||
* gstrfuncs.c (g_strsignal): The "extern char* sys_siglist"
|
||||
declaration breaks systems with different declarations, like
|
||||
mine (FreeBSD). So, I added a configuration variable to decide
|
||||
whether the declaration is neccesary. Change also appears on
|
||||
line 275 of configure.in.
|
||||
|
||||
Sun Jan 17 17:13:54 CST 1999 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GLib 1.1.13
|
||||
|
@ -1,3 +1,11 @@
|
||||
Tue Jan 19 00:44:24 1999 Josh MacDonald <jmacd@axis.hip.berkeley.edu>
|
||||
|
||||
* gstrfuncs.c (g_strsignal): The "extern char* sys_siglist"
|
||||
declaration breaks systems with different declarations, like
|
||||
mine (FreeBSD). So, I added a configuration variable to decide
|
||||
whether the declaration is neccesary. Change also appears on
|
||||
line 275 of configure.in.
|
||||
|
||||
Sun Jan 17 17:13:54 CST 1999 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GLib 1.1.13
|
||||
|
@ -1,3 +1,11 @@
|
||||
Tue Jan 19 00:44:24 1999 Josh MacDonald <jmacd@axis.hip.berkeley.edu>
|
||||
|
||||
* gstrfuncs.c (g_strsignal): The "extern char* sys_siglist"
|
||||
declaration breaks systems with different declarations, like
|
||||
mine (FreeBSD). So, I added a configuration variable to decide
|
||||
whether the declaration is neccesary. Change also appears on
|
||||
line 275 of configure.in.
|
||||
|
||||
Sun Jan 17 17:13:54 CST 1999 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GLib 1.1.13
|
||||
|
@ -1,3 +1,11 @@
|
||||
Tue Jan 19 00:44:24 1999 Josh MacDonald <jmacd@axis.hip.berkeley.edu>
|
||||
|
||||
* gstrfuncs.c (g_strsignal): The "extern char* sys_siglist"
|
||||
declaration breaks systems with different declarations, like
|
||||
mine (FreeBSD). So, I added a configuration variable to decide
|
||||
whether the declaration is neccesary. Change also appears on
|
||||
line 275 of configure.in.
|
||||
|
||||
Sun Jan 17 17:13:54 CST 1999 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GLib 1.1.13
|
||||
|
@ -1,3 +1,11 @@
|
||||
Tue Jan 19 00:44:24 1999 Josh MacDonald <jmacd@axis.hip.berkeley.edu>
|
||||
|
||||
* gstrfuncs.c (g_strsignal): The "extern char* sys_siglist"
|
||||
declaration breaks systems with different declarations, like
|
||||
mine (FreeBSD). So, I added a configuration variable to decide
|
||||
whether the declaration is neccesary. Change also appears on
|
||||
line 275 of configure.in.
|
||||
|
||||
Sun Jan 17 17:13:54 CST 1999 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GLib 1.1.13
|
||||
|
@ -1,3 +1,11 @@
|
||||
Tue Jan 19 00:44:24 1999 Josh MacDonald <jmacd@axis.hip.berkeley.edu>
|
||||
|
||||
* gstrfuncs.c (g_strsignal): The "extern char* sys_siglist"
|
||||
declaration breaks systems with different declarations, like
|
||||
mine (FreeBSD). So, I added a configuration variable to decide
|
||||
whether the declaration is neccesary. Change also appears on
|
||||
line 275 of configure.in.
|
||||
|
||||
Sun Jan 17 17:13:54 CST 1999 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GLib 1.1.13
|
||||
|
@ -1,3 +1,11 @@
|
||||
Tue Jan 19 00:44:24 1999 Josh MacDonald <jmacd@axis.hip.berkeley.edu>
|
||||
|
||||
* gstrfuncs.c (g_strsignal): The "extern char* sys_siglist"
|
||||
declaration breaks systems with different declarations, like
|
||||
mine (FreeBSD). So, I added a configuration variable to decide
|
||||
whether the declaration is neccesary. Change also appears on
|
||||
line 275 of configure.in.
|
||||
|
||||
Sun Jan 17 17:13:54 CST 1999 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GLib 1.1.13
|
||||
|
@ -1,3 +1,11 @@
|
||||
Tue Jan 19 00:44:24 1999 Josh MacDonald <jmacd@axis.hip.berkeley.edu>
|
||||
|
||||
* gstrfuncs.c (g_strsignal): The "extern char* sys_siglist"
|
||||
declaration breaks systems with different declarations, like
|
||||
mine (FreeBSD). So, I added a configuration variable to decide
|
||||
whether the declaration is neccesary. Change also appears on
|
||||
line 275 of configure.in.
|
||||
|
||||
Sun Jan 17 17:13:54 CST 1999 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GLib 1.1.13
|
||||
|
@ -65,6 +65,7 @@
|
||||
#undef NO_FD_SET
|
||||
#undef NO_SYS_ERRLIST
|
||||
#undef NO_SYS_SIGLIST
|
||||
#undef NO_SYS_SIGLIST_DECL
|
||||
|
||||
#undef WITH_SYMBOL_UNDERSCORE
|
||||
|
||||
|
12
configure.in
12
configure.in
@ -265,13 +265,23 @@ fi
|
||||
AC_MSG_CHECKING(for sys_siglist)
|
||||
AC_TRY_LINK(, [
|
||||
extern char *sys_siglist[];
|
||||
sys_siglist[1][0] = 0;
|
||||
strlen (sys_siglist[0]);
|
||||
], glib_ok=yes, glib_ok=no)
|
||||
AC_MSG_RESULT($glib_ok)
|
||||
if test $glib_ok = no; then
|
||||
AC_DEFINE(NO_SYS_SIGLIST)
|
||||
fi
|
||||
|
||||
# Check for sys_siglist decl (see Tue Jan 19 00:44:24 1999 in changelog)
|
||||
AC_MSG_CHECKING(for sys_siglist declaration)
|
||||
AC_TRY_COMPILE([#include <signal.h>], [
|
||||
strlen (sys_siglist[0]);
|
||||
], glib_ok=yes, glib_ok=no)
|
||||
AC_MSG_RESULT($glib_ok)
|
||||
if test $glib_ok = yes; then
|
||||
AC_DEFINE(NO_SYS_SIGLIST_DECL)
|
||||
fi
|
||||
|
||||
# Check if <sys/select.h> needs to be included for fd_set
|
||||
AC_MSG_CHECKING([for fd_set])
|
||||
AC_TRY_COMPILE([#include <sys/types.h>],
|
||||
|
@ -759,8 +759,13 @@ g_strsignal (gint signum)
|
||||
#endif
|
||||
}
|
||||
#else /* NO_SYS_SIGLIST */
|
||||
|
||||
#ifndef NO_SYS_SIGLIST_DECL
|
||||
/*(see Tue Jan 19 00:44:24 1999 in changelog)*/
|
||||
extern char *sys_siglist[];
|
||||
return sys_siglist [signum];
|
||||
#endif
|
||||
|
||||
return (char*) /* this function should return const --josh */ sys_siglist [signum];
|
||||
#endif /* NO_SYS_SIGLIST */
|
||||
|
||||
msg = g_static_private_get (&msg_private);
|
||||
|
@ -759,8 +759,13 @@ g_strsignal (gint signum)
|
||||
#endif
|
||||
}
|
||||
#else /* NO_SYS_SIGLIST */
|
||||
|
||||
#ifndef NO_SYS_SIGLIST_DECL
|
||||
/*(see Tue Jan 19 00:44:24 1999 in changelog)*/
|
||||
extern char *sys_siglist[];
|
||||
return sys_siglist [signum];
|
||||
#endif
|
||||
|
||||
return (char*) /* this function should return const --josh */ sys_siglist [signum];
|
||||
#endif /* NO_SYS_SIGLIST */
|
||||
|
||||
msg = g_static_private_get (&msg_private);
|
||||
|
Loading…
Reference in New Issue
Block a user