Skip to content
Permalink
Browse files

bochs: fix build: strrchr() const overload produces an error.

  • Loading branch information
mkhon authored and pmetzger committed Jul 1, 2019
1 parent bacd559 commit c540cde5551d150eb053e08ad81b2aa79fa0c78a
Showing with 13 additions and 1 deletion.
  1. +2 −1 emulators/bochs/Portfile
  2. +11 −0 emulators/bochs/files/patch-cdrom_osx.cc.diff
@@ -21,7 +21,8 @@ master_sites sourceforge
checksums sha256 79700ef0914a0973f62d9908ff700ef7def62d4a28ed5de418ef61f3576585ce \
rmd160 cf6f9a427559c79e18c208a89e7146b6e9798ea5

patchfiles patch-.bochsrc.diff
patchfiles patch-.bochsrc.diff \
patch-cdrom_osx.cc.diff

depends_lib port:gettext \
port:readline
@@ -0,0 +1,11 @@
--- iodev/hdimage/cdrom_osx.cc.orig 2019-06-28 17:01:30.000000000 +0700
+++ iodev/hdimage/cdrom_osx.cc 2019-06-28 17:06:39.000000000 +0700
@@ -191,7 +191,7 @@
mach_port_t port = 0;
char *devname;

- if ((devname = strrchr(devpath, '/')) != NULL) {
+ if ((devname = (char *) strrchr(devpath, '/')) != NULL) {
++devname;
}
else {

0 comments on commit c540cde

Please sign in to comment.
You can’t perform that action at this time.