diff options
Diffstat (limited to 'debian/patches/libmachdev.patch')
-rw-r--r-- | debian/patches/libmachdev.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/debian/patches/libmachdev.patch b/debian/patches/libmachdev.patch new file mode 100644 index 00000000..3bca9ff3 --- /dev/null +++ b/debian/patches/libmachdev.patch @@ -0,0 +1,35 @@ +diff --git a/libmachdev/net.c b/libmachdev/net.c +index 606765f..766d9b4 100644 +--- a/libmachdev/net.c ++++ b/libmachdev/net.c +@@ -212,7 +212,7 @@ deliver_msg(struct net_rcv_msg *msg, if_filter_list_t *ifp) + MACH_SEND_MSG|MACH_SEND_TIMEOUT, + msg->msg_hdr.msgh_size, 0, MACH_PORT_NULL, + 0, MACH_PORT_NULL); +- if (err != MACH_MSG_SUCCESS) ++ if (0 && err != MACH_MSG_SUCCESS) + { + /* TODO: remove from filter */ + } +@@ -377,7 +377,7 @@ device_open (mach_port_t reply_port, mach_msg_type_name_t reply_port_type, + } + + *devp = ports_get_right (nd); +- *devicePoly = MACH_MSG_TYPE_COPY_SEND; ++ *devicePoly = MACH_MSG_TYPE_MAKE_SEND; + return D_SUCCESS; + } + +diff --git a/libmachdev/ds_routines.c b/libmachdev/ds_routines.c +index 6b8d1d4..f0c034f 100644 +--- a/libmachdev/ds_routines.c ++++ b/libmachdev/ds_routines.c +@@ -206,7 +206,7 @@ ds_device_close (device_t dev) + ret = (device->emul_ops->close + ? (*device->emul_ops->close) (device->emul_data) + : D_SUCCESS); +- mach_device_deallocate (device_to_pi (device)); ++ //mach_device_deallocate (device_to_pi (device)); + + ports_port_deref (device_to_pi (device)); + return ret; |