File irda-fix_build_with_recent_kernels.diff of Package irda

From 570c8ec27185548296af7de057b65b544a7223b9 Mon Sep 17 00:00:00 2001
From: Christophe Giboudeaux <christophe@krop.fr>
Date: Tue, 27 Aug 2019 00:10:20 +0200
Subject: [PATCH] Include 'linux/sockios.h' to build with recent kernel
 versions.

Fixes the 'irdadump.c:286:16: error: 'SIOCGSTAMP' undeclared' error caused by
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0768e17073dc
---
 irdadump/irdadump.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/irdadump/irdadump.c b/irdadump/irdadump.c
index 46cc6b0..b619a59 100644
--- a/irdadump/irdadump.c
+++ b/irdadump/irdadump.c
@@ -36,6 +36,8 @@
 
 #include <netpacket/packet.h>
 
+#include <linux/sockios.h>
+
 #include <stdint.h>
 #include <string.h>		/* strncpy */
 #include <stdio.h>		/* perror */
-- 
2.23.0

openSUSE Build Service is sponsored by