0001-add-missing-include.patch 852 B

1234567891011121314151617181920212223242526272829
  1. Subject: [PATCH] topology: Add missing include sys/stat.h
  2. Necessary for proper definitions of S_IRUSR & co. Otherwise it
  3. results in compile errors with old glibc:
  4. parser.c: In function 'snd_tplg_build_file':
  5. parser.c:262: error: 'S_IRUSR' undeclared (first use in this function)
  6. parser.c:262: error: (Each undeclared identifier is reported only once
  7. parser.c:262: error: for each function it appears in.)
  8. Signed-off-by: Takashi Iwai <tiwai@suse.de>
  9. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  10. ---
  11. Status: upstream
  12. diff --git a/src/topology/parser.c b/src/topology/parser.c
  13. index 80a0ae0..18bb9c7 100644
  14. --- a/src/topology/parser.c
  15. +++ b/src/topology/parser.c
  16. @@ -16,6 +16,7 @@
  17. Liam Girdwood <liam.r.girdwood@linux.intel.com>
  18. */
  19. +#include <sys/stat.h>
  20. #include "list.h"
  21. #include "tplg_local.h"
  22. --
  23. 1.7.11.7