006-properly-define-S_IRUSR.patch 981 B

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