mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-25 20:16:14 -05:00
Fix FreeBSD sound timing problems
This commit is contained in:
@@ -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__ */
|
||||
|
||||
Reference in New Issue
Block a user