Browse Source

Fix for timeval on OSX.

Darryl Pogue 10 years ago committed by Darryl Pogue
parent
commit
70d037353f
  1. 2
      Sources/Plasma/PubUtilLib/plUnifiedTime/plUnifiedTime.cpp

2
Sources/Plasma/PubUtilLib/plUnifiedTime/plUnifiedTime.cpp

@ -448,7 +448,7 @@ plUnifiedTime::operator timeval() const
// tv_secs should be a time_t, but on Windows it is a long // tv_secs should be a time_t, but on Windows it is a long
struct timeval t = {(long)fSecs, (long)fMicros}; struct timeval t = {(long)fSecs, (long)fMicros};
#else #else
struct timeval t = {fSecs, fMicros}; struct timeval t = {fSecs, (suseconds_t)fMicros};
#endif #endif
return t; return t;
} }

Loading…
Cancel
Save