pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/pciutils pciutils: Fix SunOS/clang.
details: https://anonhg.NetBSD.org/pkgsrc/rev/cb954d4eb993
branches: trunk
changeset: 374915:cb954d4eb993
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Wed Jan 31 13:21:55 2018 +0000
description:
pciutils: Fix SunOS/clang.
diffstat:
sysutils/pciutils/distinfo | 3 +-
sysutils/pciutils/patches/patch-lib_i386-io-sunos.h | 53 +++++++++++++++++++++
2 files changed, 55 insertions(+), 1 deletions(-)
diffs (71 lines):
diff -r 76c7099aba06 -r cb954d4eb993 sysutils/pciutils/distinfo
--- a/sysutils/pciutils/distinfo Wed Jan 31 13:12:46 2018 +0000
+++ b/sysutils/pciutils/distinfo Wed Jan 31 13:21:55 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.27 2017/11/20 03:14:42 msaitoh Exp $
+$NetBSD: distinfo,v 1.28 2018/01/31 13:21:55 jperkin Exp $
SHA1 (pciutils-3.5.6.tar.gz) = 9f22fe9fccf1c5089167dc534409df8bd724f43d
RMD160 (pciutils-3.5.6.tar.gz) = d4c89bdcff620646de5cc847f93d598822799168
@@ -7,3 +7,4 @@
SHA1 (patch-aa) = d8caa8b69987d14397fd863d776a533e4c19b26e
SHA1 (patch-ab) = 881db39792c9d72f527438e2b475ac2ea842b536
SHA1 (patch-ac) = 4b90e99c051391b9cd3a6c1f5781f41b4a855c29
+SHA1 (patch-lib_i386-io-sunos.h) = afb666796a6b220d868a41e4fb9fd9e42152faed
diff -r 76c7099aba06 -r cb954d4eb993 sysutils/pciutils/patches/patch-lib_i386-io-sunos.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/pciutils/patches/patch-lib_i386-io-sunos.h Wed Jan 31 13:21:55 2018 +0000
@@ -0,0 +1,53 @@
+$NetBSD: patch-lib_i386-io-sunos.h,v 1.1 2018/01/31 13:21:55 jperkin Exp $
+
+Fix assembly syntax to work with clang.
+
+--- lib/i386-io-sunos.h.orig 2011-01-07 21:04:28.000000000 +0000
++++ lib/i386-io-sunos.h
+@@ -27,7 +27,7 @@ static inline u8
+ inb (u16 port)
+ {
+ u8 v;
+- __asm__ __volatile__ ("inb (%w1)":"=a" (v):"Nd" (port));
++ __asm__ __volatile__ ("inb %w1":"=a" (v):"Nd" (port));
+ return v;
+ }
+
+@@ -35,7 +35,7 @@ static inline u16
+ inw (u16 port)
+ {
+ u16 v;
+- __asm__ __volatile__ ("inw (%w1)":"=a" (v):"Nd" (port));
++ __asm__ __volatile__ ("inw %w1":"=a" (v):"Nd" (port));
+ return v;
+ }
+
+@@ -43,24 +43,24 @@ static inline u32
+ inl (u16 port)
+ {
+ u32 v;
+- __asm__ __volatile__ ("inl (%w1)":"=a" (v):"Nd" (port));
++ __asm__ __volatile__ ("inl %w1":"=a" (v):"Nd" (port));
+ return v;
+ }
+
+ static inline void
+ outb (u8 value, u16 port)
+ {
+- __asm__ __volatile__ ("outb (%w1)": :"a" (value), "Nd" (port));
++ __asm__ __volatile__ ("outb %w1": :"a" (value), "Nd" (port));
+ }
+
+ static inline void
+ outw (u16 value, u16 port)
+ {
+- __asm__ __volatile__ ("outw (%w1)": :"a" (value), "Nd" (port));
++ __asm__ __volatile__ ("outw %w1": :"a" (value), "Nd" (port));
+ }
+
+ static inline void
+ outl (u32 value, u16 port)
+ {
+- __asm__ __volatile__ ("outl (%w1)": :"a" (value), "Nd" (port));
++ __asm__ __volatile__ ("outl %w1": :"a" (value), "Nd" (port));
+ }
Home |
Main Index |
Thread Index |
Old Index