Changeset 3447:ded31ab2cdf5 in roaraudio
- Timestamp:
- 02/13/10 15:53:48 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroarpulse/timeval.c
r3446 r3447 39 39 #include <libroarpulse/libroarpulse.h> 40 40 41 struct timeval *pa_gettimeofday(struct timeval *tv); 41 struct timeval *pa_gettimeofday(struct timeval *tv) { 42 #ifdef ROAR_HAVE_GETTIMEOFDAY 43 if ( gettimeofday(tv, NULL) == -1 ) { 44 return NULL; 45 } else { 46 return tv; 47 } 48 #else 49 return NULL; 50 #endif 51 } 52 42 53 pa_usec_t pa_timeval_diff(const struct timeval *a, const struct timeval *b); 43 54 int pa_timeval_cmp(const struct timeval *a, const struct timeval *b);
Note: See TracChangeset
for help on using the changeset viewer.