Fix FreeBSD sound timing problems

This commit is contained in:
ejurgensen
2014-09-27 22:59:19 +02:00
parent dafa26a48a
commit 65110a9f39
3 changed files with 208 additions and 267 deletions

View File

@@ -3,9 +3,7 @@
#define __MISC_H__
#include <stdint.h>
#if defined(__linux__)
# include <time.h>
#endif
#include <time.h>
struct onekeyval {
char *name;
@@ -84,8 +82,7 @@ b64_encode(uint8_t *in, size_t len);
uint64_t
murmur_hash64(const void *key, int len, uint32_t seed);
#if defined(__linux__)
/* Timer functions for platforms without hi-res timers */
/* Timer function for platforms without hi-res timers */
int
clock_gettime_with_res(clockid_t clock_id, struct timespec *tp, struct timespec *res);
@@ -94,6 +91,5 @@ timespec_add(struct timespec time1, struct timespec time2);
int
timespec_cmp(struct timespec time1, struct timespec time2);
#endif /* __linux__ */
#endif /* !__MISC_H__ */