0003-portability-fixes.patch 825 B

12345678910111213141516171819202122232425262728293031323334353637
  1. From 92247401984dd9a80d9d0c8c030692323f980678 Mon Sep 17 00:00:00 2001
  2. From: Emmanuel Dreyfus <manu@netbsd.org>
  3. Date: Mon, 30 Jun 2014 13:06:05 +0000
  4. Subject: Portability fixes
  5. - <features.h> is Linux specific
  6. - Define __THROW for non glibc based systems
  7. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  8. ---
  9. (limited to 'include/xattr.h')
  10. diff --git a/include/xattr.h b/include/xattr.h
  11. index 070d7c5..fd1f268 100644
  12. --- a/include/xattr.h
  13. +++ b/include/xattr.h
  14. @@ -20,7 +20,18 @@
  15. #ifndef __XATTR_H__
  16. #define __XATTR_H__
  17. +#if defined(linux)
  18. #include <features.h>
  19. +#endif
  20. +
  21. +/* Portability non glibc c++ build systems */
  22. +#ifndef __THROW
  23. +# if defined __cplusplus
  24. +# define __THROW throw ()
  25. +# else
  26. +# define __THROW
  27. +# endif
  28. +#endif
  29. #include <errno.h>
  30. #ifndef ENOATTR
  31. --
  32. cgit v0.9.0.2