- Add irda-fix_build_with_recent_kernels.diff OBS-URL: https://build.opensuse.org/request/show/726258 OBS-URL: https://build.opensuse.org/package/show/Base:System/irda?expand=0&rev=18
29 lines
799 B
Diff
29 lines
799 B
Diff
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
|
|
|