forked from AuroraMiddleware/gtk
added -posix check for NeXTStep
* configure.in: added -posix check for NeXTStep * gtk/testthreads.c: applied part of gtk-joke-980907-0 to use a unique buffer for each thread. * docs/gtk-config.1: clarified copyright -Yosh
This commit is contained in:
parent
c8fbf3b01e
commit
683cb5753e
@ -1,3 +1,12 @@
|
||||
Wed Sep 9 02:48:44 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* configure.in: added -posix check for NeXTStep
|
||||
|
||||
* gtk/testthreads.c: applied part of gtk-joke-980907-0 to use
|
||||
a unique buffer for each thread.
|
||||
|
||||
* docs/gtk-config.1: clarified copyright
|
||||
|
||||
Tue Sep 8 05:19:51 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT.
|
||||
|
@ -1,3 +1,12 @@
|
||||
Wed Sep 9 02:48:44 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* configure.in: added -posix check for NeXTStep
|
||||
|
||||
* gtk/testthreads.c: applied part of gtk-joke-980907-0 to use
|
||||
a unique buffer for each thread.
|
||||
|
||||
* docs/gtk-config.1: clarified copyright
|
||||
|
||||
Tue Sep 8 05:19:51 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT.
|
||||
|
@ -1,3 +1,12 @@
|
||||
Wed Sep 9 02:48:44 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* configure.in: added -posix check for NeXTStep
|
||||
|
||||
* gtk/testthreads.c: applied part of gtk-joke-980907-0 to use
|
||||
a unique buffer for each thread.
|
||||
|
||||
* docs/gtk-config.1: clarified copyright
|
||||
|
||||
Tue Sep 8 05:19:51 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT.
|
||||
|
@ -1,3 +1,12 @@
|
||||
Wed Sep 9 02:48:44 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* configure.in: added -posix check for NeXTStep
|
||||
|
||||
* gtk/testthreads.c: applied part of gtk-joke-980907-0 to use
|
||||
a unique buffer for each thread.
|
||||
|
||||
* docs/gtk-config.1: clarified copyright
|
||||
|
||||
Tue Sep 8 05:19:51 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT.
|
||||
|
@ -1,3 +1,12 @@
|
||||
Wed Sep 9 02:48:44 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* configure.in: added -posix check for NeXTStep
|
||||
|
||||
* gtk/testthreads.c: applied part of gtk-joke-980907-0 to use
|
||||
a unique buffer for each thread.
|
||||
|
||||
* docs/gtk-config.1: clarified copyright
|
||||
|
||||
Tue Sep 8 05:19:51 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT.
|
||||
|
@ -1,3 +1,12 @@
|
||||
Wed Sep 9 02:48:44 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* configure.in: added -posix check for NeXTStep
|
||||
|
||||
* gtk/testthreads.c: applied part of gtk-joke-980907-0 to use
|
||||
a unique buffer for each thread.
|
||||
|
||||
* docs/gtk-config.1: clarified copyright
|
||||
|
||||
Tue Sep 8 05:19:51 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT.
|
||||
|
@ -1,3 +1,12 @@
|
||||
Wed Sep 9 02:48:44 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* configure.in: added -posix check for NeXTStep
|
||||
|
||||
* gtk/testthreads.c: applied part of gtk-joke-980907-0 to use
|
||||
a unique buffer for each thread.
|
||||
|
||||
* docs/gtk-config.1: clarified copyright
|
||||
|
||||
Tue Sep 8 05:19:51 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT.
|
||||
|
12
configure.in
12
configure.in
@ -127,6 +127,18 @@ AC_TRY_RUN([#include <math.h>
|
||||
)
|
||||
LIBS=$gtk_save_LIBS
|
||||
|
||||
dnl NeXTStep cc seems to need this
|
||||
AC_MSG_CHECKING([for extra flags for POSIX compliance])
|
||||
AC_TRY_COMPILE([#include <dirent.h>], [DIR *dir;],
|
||||
AC_MSG_RESULT(none needed),
|
||||
gtk_save_CFLAGS=$CFLAGS
|
||||
CFLAGS="$CFLAGS -posix"
|
||||
AC_TRY_COMPILE([#include <dirent.h>], [DIR *dir;],
|
||||
AC_MSG_RESULT(-posix),
|
||||
AC_MSG_RESULT()
|
||||
CFLAGS=$gtk_save_CFLAGS
|
||||
AC_MSG_WARN([Could not determine POSIX flag. (-posix didn't work.)])))
|
||||
|
||||
if test "x$enable_xim" = "xyes"; then
|
||||
CFLAGS="$CFLAGS -DUSE_XIM"
|
||||
fi
|
||||
|
@ -40,7 +40,7 @@ and \-\-libs options. This option must be specified before any
|
||||
.BR gimp (1),
|
||||
.BR gimptool (1)
|
||||
.SH COPYRIGHT
|
||||
Copyright \(co 1995 Spencer Kimball and Peter Mattis
|
||||
Copyright \(co 1998 Owen Taylor
|
||||
|
||||
Permission to use, copy, modify, and distribute this software and its
|
||||
documentation for any purpose and without fee is hereby granted,
|
||||
|
@ -127,11 +127,11 @@ main (int argc, char **argv)
|
||||
|
||||
for (i=0; i<5; i++)
|
||||
{
|
||||
char buffer[10];
|
||||
char buffer[5][10];
|
||||
pthread_t thread;
|
||||
|
||||
sprintf(buffer, "Thread %i", i);
|
||||
if (pthread_create (&thread, NULL, counter, buffer))
|
||||
sprintf(buffer[i], "Thread %i", i);
|
||||
if (pthread_create (&thread, NULL, counter, buffer[i]))
|
||||
{
|
||||
fprintf(stderr, "Couldn't create thread\n");
|
||||
exit(1);
|
||||
|
@ -127,11 +127,11 @@ main (int argc, char **argv)
|
||||
|
||||
for (i=0; i<5; i++)
|
||||
{
|
||||
char buffer[10];
|
||||
char buffer[5][10];
|
||||
pthread_t thread;
|
||||
|
||||
sprintf(buffer, "Thread %i", i);
|
||||
if (pthread_create (&thread, NULL, counter, buffer))
|
||||
sprintf(buffer[i], "Thread %i", i);
|
||||
if (pthread_create (&thread, NULL, counter, buffer[i]))
|
||||
{
|
||||
fprintf(stderr, "Couldn't create thread\n");
|
||||
exit(1);
|
||||
|
Loading…
Reference in New Issue
Block a user