Do not reference libc internal macros in user visible macros
[buildroot.git] / package / ltt / ltt-gcc4.patch
blob4e709d68726a3dcff1c0b1ad1a9d4ae9a93a0363
1 --- orig/TraceToolkit-0.9.5/Visualizer/MainWindow.c 2002-04-15 19:23:49.000000000 -0700
2 +++ TraceToolkit-0.9.5/Visualizer/MainWindow.c 2006-04-05 16:04:47.000000000 -0700
3 @@ -28,6 +28,7 @@
4 #include <string.h>
5 #include <fcntl.h>
6 #include <unistd.h>
7 +#include <stdlib.h>
8 #include <sys/stat.h>
9 #include <gdk/gdkkeysyms.h>
11 @@ -3146,8 +3147,10 @@
13 /* FORCEFULLY disconnect event handlers from the notebook widget */
14 /* I didn't find any cleaner way to do this. K.Y. 9/5/2000 */
15 - GTK_SIGNAL_FUNC(GTK_WIDGET_CLASS(GTK_OBJECT(pmSysView->Window->MNotebook)->klass)->key_press_event) = NULL,
16 - GTK_SIGNAL_FUNC(GTK_WIDGET_CLASS(GTK_OBJECT(pmSysView->Window->MNotebook)->klass)->focus_in_event) = NULL,
17 + gtk_type_free(GTK_TYPE_SIGNAL,
18 + GTK_SIGNAL_FUNC(GTK_WIDGET_CLASS(GTK_OBJECT(pmSysView->Window->MNotebook)->klass)->key_press_event));
19 + gtk_type_free(GTK_TYPE_SIGNAL,
20 + GTK_SIGNAL_FUNC(GTK_WIDGET_CLASS(GTK_OBJECT(pmSysView->Window->MNotebook)->klass)->focus_in_event));
22 /* Connect the key press event */
23 gtk_signal_connect(GTK_OBJECT(pmSysView->Window->MWindow),