0002-asound.h-include-time.h-to-get-struct-timespec-proto.patch 986 B

123456789101112131415161718192021222324252627282930313233
  1. From c8333f8c7a4e4b9549abeef7530b2cd20a18e537 Mon Sep 17 00:00:00 2001
  2. From: rofl0r <retnyg@gmx.net>
  3. Date: Mon, 12 Oct 2015 12:57:09 +0100
  4. Subject: [PATCH] asound.h: include <time.h> to get struct timespec prototype
  5. without including it, we get
  6. In file included from mixer.c:44:0:
  7. include/sound/asound.h:337:18: error: field 'trigger_tstamp' has incomplete type
  8. include/sound/asound.h:338:18: error: field 'tstamp' has incomplete type
  9. etc.
  10. Signed-off-by: Baruch Siach <baruch@tkos.co.il>
  11. ---
  12. Patch status: upstream commit c8333f8c7a4e
  13. include/sound/asound.h | 1 +
  14. 1 file changed, 1 insertion(+)
  15. diff --git a/include/sound/asound.h b/include/sound/asound.h
  16. index a041628ec28e..7c6de81673f5 100644
  17. --- a/include/sound/asound.h
  18. +++ b/include/sound/asound.h
  19. @@ -12,6 +12,7 @@
  20. #ifndef __SOUND_ASOUND_H
  21. #define __SOUND_ASOUND_H
  22. +#include <time.h>
  23. #include <linux/types.h>
  24. #define SNDRV_PROTOCOL_VERSION(major, minor, subminor) (((major)<<16)|((minor)<<8)|(subminor))
  25. --
  26. 2.8.1