diff --git a/MultiSource/Applications/d/d.h b/MultiSource/Applications/d/d.h --- a/MultiSource/Applications/d/d.h +++ b/MultiSource/Applications/d/d.h @@ -76,7 +76,9 @@ typedef unsigned long long uint64; typedef short int16; typedef unsigned short uint16; -/* typedef uint32 uint; * already part of most systems */ +#if defined(_AIX) && !defined(_ALL_SOURCE) +typedef uint32 uint; +#endif typedef unsigned long ulong; #include "dparse.h" diff --git a/MultiSource/Applications/viterbi/common.h b/MultiSource/Applications/viterbi/common.h --- a/MultiSource/Applications/viterbi/common.h +++ b/MultiSource/Applications/viterbi/common.h @@ -130,10 +130,13 @@ static inline double sTime() #if !defined(_MSC_VER) && !defined(__MINGW32__) { static struct timeval this_tv; - static struct timezone dumbTZ; double t; - +#if !defined(_AIX) || defined(_ALL_SOURCE) + static struct timezone dumbTZ; gettimeofday(&this_tv, &dumbTZ); +#else + gettimeofday(&this_tv, NULL); +#endif t = this_tv.tv_sec + 0.000001*this_tv.tv_usec; return t; }