diff options
-rw-r--r-- | scrolllist/scrolllist.c | 1 | ||||
-rw-r--r-- | sonogram~/sonogram~.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/scrolllist/scrolllist.c b/scrolllist/scrolllist.c index 8e44ba7..9348895 100644 --- a/scrolllist/scrolllist.c +++ b/scrolllist/scrolllist.c @@ -43,6 +43,7 @@ #ifdef NT #include <io.h> +#include <pthread.h> #else #include <unistd.h> #include <sys/types.h> diff --git a/sonogram~/sonogram~.c b/sonogram~/sonogram~.c index c9be8d4..4085b34 100644 --- a/sonogram~/sonogram~.c +++ b/sonogram~/sonogram~.c @@ -148,7 +148,11 @@ typedef struct _sonogram t_int x_nbupdated; /* number of points updated */ t_glist *x_glist; /* keep graphic context for various operations */ t_int x_zoom; /* zoom factor */ + #ifndef _WIN32 pthread_t x_updatechild; /* thread id for the update child */ + #else + int x_updatechild; + #endif t_int x_updatestart; /* starting position for update */ t_int x_updateend; /* ending position for update */ t_int x_xpos; /* stuck x position */ @@ -439,6 +443,7 @@ static void sonogram_update_part(t_sonogram *x, t_glist *glist, t_int bstart, t_ t_int erase, t_int redraw, t_int keepframe) { pthread_attr_t update_child_attr; + pthread_t update_child; t_canvas *canvas=glist_getcanvas(glist); if ( x->x_graphic ) |