You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
748 B

  1. --- a/src/pcm/pcm_shm.c
  2. +++ b/src/pcm/pcm_shm.c
  3. @@ -45,6 +45,14 @@
  4. #include <netdb.h>
  5. #include "aserver.h"
  6. +#if _POSIX_C_SOURCE >= 200809L
  7. +#define usleep(a) \
  8. + do { \
  9. + const struct timespec req = {0, a * 1000}; \
  10. + nanosleep(&req, NULL); \
  11. + } while(0)
  12. +#endif
  13. +
  14. #ifndef PIC
  15. /* entry for static linking */
  16. const char *_snd_module_pcm_shm = "";
  17. --- a/src/ucm/ucm_local.h
  18. +++ b/src/ucm/ucm_local.h
  19. @@ -58,6 +58,14 @@
  20. #define SEQUENCE_ELEMENT_TYPE_SYSSET 11
  21. #define SEQUENCE_ELEMENT_TYPE_CFGSAVE 12
  22. +#if _POSIX_C_SOURCE >= 200809L
  23. +#define usleep(a) \
  24. + do { \
  25. + const struct timespec req = {0, a * 1000}; \
  26. + nanosleep(&req, NULL); \
  27. + } while(0)
  28. +#endif
  29. +
  30. struct ucm_value {
  31. struct list_head list;
  32. char *name;