diff --git a/ChangeLog b/ChangeLog index 4011d028f6..f4c478ef5b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +Wed Sep 9 02:48:44 PDT 1998 Manish Singh + + * 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 * gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT. diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 4011d028f6..f4c478ef5b 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,12 @@ +Wed Sep 9 02:48:44 PDT 1998 Manish Singh + + * 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 * gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 4011d028f6..f4c478ef5b 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,12 @@ +Wed Sep 9 02:48:44 PDT 1998 Manish Singh + + * 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 * gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT. diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 4011d028f6..f4c478ef5b 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,12 @@ +Wed Sep 9 02:48:44 PDT 1998 Manish Singh + + * 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 * gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT. diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 4011d028f6..f4c478ef5b 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,12 @@ +Wed Sep 9 02:48:44 PDT 1998 Manish Singh + + * 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 * gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 4011d028f6..f4c478ef5b 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,12 @@ +Wed Sep 9 02:48:44 PDT 1998 Manish Singh + + * 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 * gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 4011d028f6..f4c478ef5b 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,12 @@ +Wed Sep 9 02:48:44 PDT 1998 Manish Singh + + * 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 * gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT. diff --git a/configure.in b/configure.in index bbe82b855e..1f3b62ab41 100644 --- a/configure.in +++ b/configure.in @@ -127,6 +127,18 @@ AC_TRY_RUN([#include ) LIBS=$gtk_save_LIBS +dnl NeXTStep cc seems to need this +AC_MSG_CHECKING([for extra flags for POSIX compliance]) +AC_TRY_COMPILE([#include ], [DIR *dir;], + AC_MSG_RESULT(none needed), + gtk_save_CFLAGS=$CFLAGS + CFLAGS="$CFLAGS -posix" + AC_TRY_COMPILE([#include ], [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 diff --git a/docs/gtk-config.1 b/docs/gtk-config.1 index 2d50757b45..41a0a0cdbc 100644 --- a/docs/gtk-config.1 +++ b/docs/gtk-config.1 @@ -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, diff --git a/gtk/testthreads.c b/gtk/testthreads.c index 6ce38f369c..4d02a06435 100644 --- a/gtk/testthreads.c +++ b/gtk/testthreads.c @@ -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); diff --git a/tests/testthreads.c b/tests/testthreads.c index 6ce38f369c..4d02a06435 100644 --- a/tests/testthreads.c +++ b/tests/testthreads.c @@ -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);