From 282671282b20fa17ab9dbbaba9d1cf2246b5029d Mon Sep 17 00:00:00 2001 From: Miller Puckette Date: Mon, 17 Aug 2009 23:31:36 +0000 Subject: merge in new tcl implementation by Steiner & Chun svn path=/trunk/; revision=11934 --- pd/src/x_misc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pd/src/x_misc.c') diff --git a/pd/src/x_misc.c b/pd/src/x_misc.c index 8a67a5d1..2d7860d9 100644 --- a/pd/src/x_misc.c +++ b/pd/src/x_misc.c @@ -9,7 +9,7 @@ #include #include #include -#ifdef UNISTD +#ifdef HAVE_UNISTD_H #include #include #include @@ -194,7 +194,7 @@ static t_class *cputime_class; typedef struct _cputime { t_object x_obj; -#ifdef UNISTD +#ifdef HAVE_UNISTD_H struct tms x_setcputime; #endif #ifdef MSW @@ -206,7 +206,7 @@ typedef struct _cputime static void cputime_bang(t_cputime *x) { -#ifdef UNISTD +#ifdef HAVE_UNISTD_H times(&x->x_setcputime); #endif #ifdef MSW @@ -227,7 +227,7 @@ static void cputime_bang(t_cputime *x) static void cputime_bang2(t_cputime *x) { -#ifdef UNISTD +#ifdef HAVE_UNISTD_H t_float elapsedcpu; struct tms newcputime; times(&newcputime); -- cgit v1.2.1