sjf2410-linux-native: Do not include sys/io.h

This file is non-existent on non-x86 build hosts
Fixes
ppt.c:8:10: fatal error: sys/io.h: No such file or directory
 #include <sys/io.h>
          ^~~~~~~~~~

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2019-08-05 18:05:22 -07:00
parent 80e0113f7a
commit 3b8a7ca026
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,28 @@
From fd244ae648789591f0fb79e74d2b8f6c5b15d6e8 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 6 Aug 2019 00:47:14 +0000
Subject: [PATCH] ppt.c: Do not include sys/io.h
newer versions of glibc has removed it
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
ppt.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/ppt.c b/ppt.c
index 0bae2d0..0ef279f 100644
--- a/ppt.c
+++ b/ppt.c
@@ -5,7 +5,6 @@
#else
#include <unistd.h>
#include <stdlib.h>
-#include <sys/io.h>
#include <linux/parport.h>
#include <linux/ppdev.h>
#include <sys/ioctl.h>
--
2.17.1

View File

@ -7,7 +7,9 @@ SRCREV = "4268"
PV = "0.1+svnr${SRCPV}"
PR = "r1"
SRC_URI = "svn://svn.openmoko.org/trunk/src/host/;module=sjf2410-linux;protocol=http"
SRC_URI = "svn://svn.openmoko.org/trunk/src/host/;module=sjf2410-linux;protocol=http \
file://0001-ppt.c-Do-not-include-sys-io.h.patch \
"
S = "${WORKDIR}/sjf2410-linux"
inherit native deploy