dmapi-add-missing-includes-to-handle2path.patch 641 B

12345678910111213141516171819202122232425
  1. From: Jeff Mahoney <jeffm@suse.com>
  2. Subject: dmapi: add missing includes to handle2path
  3. The update to xfsprogs 4.2.0 removed some includes from its own headers, so
  4. those headers need to be added manually to dmapi.
  5. Signed-off-by: Jeff Mahoney <jeffm@suse.com>
  6. ---
  7. libdm/dm_handle2path.c | 4 ++++
  8. 1 file changed, 4 insertions(+)
  9. --- a/libdm/dm_handle2path.c
  10. +++ b/libdm/dm_handle2path.c
  11. @@ -16,6 +16,10 @@
  12. * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  13. */
  14. +#include <sys/stat.h>
  15. +#include <fcntl.h>
  16. +#include <string.h>
  17. +#include <unistd.h>
  18. #include <dmapi.h>
  19. #include <dmapi_kern.h>
  20. #include "dmapi_lib.h"