git: e023cb750b36 - main - emulators/open-simh: Unbreak on -CURRENT
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 21 Mar 2024 04:49:55 UTC
The branch main has been updated by kbowling:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e023cb750b3659274a664948db78480c4083eab9
commit e023cb750b3659274a664948db78480c4083eab9
Author: Kevin Bowling <kbowling@FreeBSD.org>
AuthorDate: 2024-03-21 04:47:39 +0000
Commit: Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2024-03-21 04:47:39 +0000
emulators/open-simh: Unbreak on -CURRENT
The #define to enum shutdown_how change for shutdown(2) has broken this
build. Remove the overridden SD_BOTH and directly call SHUT_RDWR for
now.
---
emulators/open-simh/files/patch-sim__sock.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/emulators/open-simh/files/patch-sim__sock.c b/emulators/open-simh/files/patch-sim__sock.c
new file mode 100644
index 000000000000..3efc4d002fe8
--- /dev/null
+++ b/emulators/open-simh/files/patch-sim__sock.c
@@ -0,0 +1,11 @@
+--- sim_sock.c.orig 2024-03-21 04:42:41 UTC
++++ sim_sock.c
+@@ -1412,7 +1412,7 @@ void sim_close_sock (SOCKET sock)
+
+ void sim_close_sock (SOCKET sock)
+ {
+-shutdown(sock, SD_BOTH);
++shutdown(sock, SHUT_RDWR);
+ closesocket (sock);
+ }
+