pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/emulators/qemu qemu: Build fix on systems without O_DI...
details: https://anonhg.NetBSD.org/pkgsrc/rev/7e95eac5cd24
branches: trunk
changeset: 335687:7e95eac5cd24
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Fri Jun 28 17:11:14 2019 +0000
description:
qemu: Build fix on systems without O_DIRECTORY.
diffstat:
emulators/qemu/distinfo | 4 ++--
emulators/qemu/patches/patch-hw_usb_dev-mtp.c | 14 ++++++++++++--
2 files changed, 14 insertions(+), 4 deletions(-)
diffs (44 lines):
diff -r db2c947559a1 -r 7e95eac5cd24 emulators/qemu/distinfo
--- a/emulators/qemu/distinfo Fri Jun 28 17:02:04 2019 +0000
+++ b/emulators/qemu/distinfo Fri Jun 28 17:11:14 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.148 2019/04/27 18:00:46 kamil Exp $
+$NetBSD: distinfo,v 1.149 2019/06/28 17:11:14 jperkin Exp $
SHA1 (qemu-4.0.0.tar.xz) = 74cfb8f4724d9651fdd354560f2d291887b32cad
RMD160 (qemu-4.0.0.tar.xz) = 58135f00c391823edce780d55a816f29dd73c34b
@@ -14,7 +14,7 @@
SHA1 (patch-hw_net_etraxfs__eth.c) = e5dd1661d60dbcd27b332403e0843500ba9544bc
SHA1 (patch-hw_net_xilinx__axienet.c) = ebcd2676d64ce6f31e4a8c976d4fdf530ad5e8b7
SHA1 (patch-hw_tpm_tpm__ioctl.h) = f99aa2912a2229b4ae52d3a0a8f2a7b15756c9be
-SHA1 (patch-hw_usb_dev-mtp.c) = c48e11fbe3a017f0e9f8dbd7bf46898b758ab79c
+SHA1 (patch-hw_usb_dev-mtp.c) = 0f9034fb3904e5d5e3b98d24b94e054181687d95
SHA1 (patch-include_sysemu_kvm.h) = f99e8ad021f6c8e89e3ca52538bd9b0656e6f619
SHA1 (patch-roms_u-boot_tools_imx8m__image.sh) = e4c452062f40569e33aa93eec4a65bd3af2e74fc
SHA1 (patch-target_hppa_insns.decode) = 111ad3d5db1c46fd42bb033ac09db377303d352e
diff -r db2c947559a1 -r 7e95eac5cd24 emulators/qemu/patches/patch-hw_usb_dev-mtp.c
--- a/emulators/qemu/patches/patch-hw_usb_dev-mtp.c Fri Jun 28 17:02:04 2019 +0000
+++ b/emulators/qemu/patches/patch-hw_usb_dev-mtp.c Fri Jun 28 17:11:14 2019 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-hw_usb_dev-mtp.c,v 1.3 2019/04/24 13:59:32 ryoon Exp $
+$NetBSD: patch-hw_usb_dev-mtp.c,v 1.4 2019/06/28 17:11:14 jperkin Exp $
-Support NAME_MAX.
+Support NAME_MAX and compat for O_DIRECTORY.
--- hw/usb/dev-mtp.c.orig 2019-04-23 18:14:46.000000000 +0000
+++ hw/usb/dev-mtp.c
@@ -15,3 +15,13 @@
/* ----------------------------------------------------------------------- */
enum mtp_container_type {
+@@ -614,6 +618,9 @@ static void usb_mtp_object_readdir(MTPSt
+ }
+ o->have_children = true;
+
++#ifndef O_DIRECTORY
++#define O_DIRECTORY 0
++#endif
+ fd = open(o->path, O_DIRECTORY | O_CLOEXEC | O_NOFOLLOW);
+ if (fd < 0) {
+ return;
Home |
Main Index |
Thread Index |
Old Index