~ubuntu-branches/ubuntu/trusty/crrcsim/trusty

« back to all changes in this revision

Viewing changes to debian/patches/06-sys_io_missing.patch

  • Committer: Package Import Robot
  • Author(s): Agustin Henze
  • Date: 2012-10-11 11:52:18 UTC
  • Revision ID: package-import@ubuntu.com-20121011115218-9fxo5kzriclfb0hw
Tags: 0.9.12-3
Fix FTBFS on sh4: This platform does not provide <sys/io.h>, so the input
parallel port driver is disabled (Closes: #690194).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
Author: Agustin Henze <tin@sluc.org.ar>
2
 
Description: Fix sys/io.h missing at (mips, mipsel, s390, s390x and sparc)
 
2
Description: Fix sys/io.h missing at (mips, mipsel, s390, s390x, sparc and sh4)
3
3
 architectures
4
4
--- a/src/mod_inputdev/inputdev_parallel/inputdev_parallel.cpp
5
5
+++ b/src/mod_inputdev/inputdev_parallel/inputdev_parallel.cpp
9
9
 #  if defined(WIN32)
10
10
-#  elif defined(__powerpc__)
11
11
+#  elif defined(__powerpc__) || defined(__mips__) || defined(__mipsel__) ||\
12
 
+    defined(__s390__) || defined(__s390x__) || defined(__sparc__)
 
12
+    defined(__s390__) || defined(__s390x__) || defined(__sparc__) || defined(__sh__)
13
13
 #    define ioperm(a,b,c) -1
14
14
 #    define inb(a) 0
15
15
 #    define outb(a,b)