Skip to content

Commit

Permalink
bochs: fix build: strrchr() const overload produces an error.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhon authored and pmetzger committed Jul 1, 2019
1 parent bacd559 commit c540cde
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion emulators/bochs/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions emulators/bochs/files/patch-cdrom_osx.cc.diff
Original file line number Diff line number Diff line change
@@ -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.