c5fa8d25d0
Changelog: Changes in 2.6.9 (April 9, 2017): Brief summary : - CPU: implemented new instructions and x86 architecture extensions. - Bugfixes for CPU emulation correctness. - Added Android host platform support. - Added USB EHCI device emulation support. - Added USB floppy (UFI/CBI) support. - Added ethernet module 'socket', designed to interconnect Bochs instances. - Show textconfig at runtime in the Bochs VGA window (gui console). Detailed change log : - General - Added new log action "warn", designed to show a message box on error events. - Show message box before exit if log action is set to "fatal". - Added macro BX_FATAL for all cases when continuing is not recommended, since it can cause an application crash or incorrect simulation behaviour. - Configure and compile - Added Android host platform support. - Configure script now prints warnings for features not maintained yet. - GUI and display libraries - Show the runtime configuration in the Bochs VGA window (gui console) instead of console / xterm (rfb, sdl, sdl2, vncsrv and X11 guis). - SDL2: Added get/set clipboard text support. - CPU / CPUDB - Bugfixes for CPU emulation correctness (critical bugfix for x86-64 and AVX opcodes emulation, fixed assertion failures in proc_ctrl.cc) ! VMX: Implemented Page Modification Logging (PML) ! VMX: Implemented TSC Scaling Extension ! Paging: Implemented Protection Keys ! Implemented UMIP: User Mode Instruction Prevention (don't allow execution of SLDT/SIDT/SGDT/STR/SMSW with CPL>0) ! Implemented RDPID instruction ! Implemented VPOPCNTD/VPOPCNTQ AVX512 instructions ! Implemented XSAVES/XRSTORS instructions and IA32_XSS MSR ! Implemented Translation Cache Extensions (TCE) for AMD CPUID and EFER.TCE control ! Implemented CLZERO instruction (AMD), enabled in Ryzen CPU model ! Implemented MONITORX/MWAITX instructions (AMD), enabled in Ryzen CPU model ! CPUDB: Added AMD Ryzen configuration to CPUDB - I/O Devices - Busmouse - Added standard bus mouse support in addition to the existing InPort emulation code. (patch by Ben Lunt). - Hard drive - Implemented lock mechanism for hard disk images. An image that is opened in r/w mode cannot be used multiple times (e.g. by another Bochs session). - Several fixes in some disk image modes. - Serial / Parallel ports - Added support for changing output file at runtime. - Networking - Added ethernet module 'socket', designed to interconnect Bochs instances with external program 'bxhub' (simulating a multi-port ethernet hub). - Now creating separate plugins for each network driver implementation (slirp, win32, etc.). - Sound - Added PCM output data resampling in a separate thread. The resampler requires either libsamplerate or the SoX resampler library installed. - SDL: Added audio capture support (requires library version >= 2.0.5). - Now creating separate plugins for each sound driver (alsa, win, etc.). - USB - Added USB EHCI device emulation support (EHCI core ported from Qemu). - Added USB floppy (UFI/CBI) support (patch by Ben Lunt). - Added asynchronus USB packet completion support (needed by disk/cdrom seek and read/write latency emulation). - Implemented USB remote wakeup mechanism. - Fixed NAK response handling in all USB HCs. - USB printer: added support for changing output file at runtime. - Added common USB device option "debug" to turn on BX_DEBUG reporting at connection time. - ROM BIOS - Implemented Bochs BIOS option "fastboot" for skipping the boot menu delay.
22 lines
638 B
C++
22 lines
638 B
C++
$NetBSD: patch-iodev_network_eth__socket.cc,v 1.1 2019/01/13 11:59:38 ryoon Exp $
|
|
|
|
--- iodev/network/eth_socket.cc.orig 2017-03-30 18:08:15.000000000 +0000
|
|
+++ iodev/network/eth_socket.cc
|
|
@@ -83,12 +83,14 @@ extern "C" {
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <sys/ioctl.h>
|
|
-#include <netpacket/packet.h>
|
|
#include <netinet/in.h>
|
|
-#include <net/ethernet.h>
|
|
#include <net/if.h>
|
|
-#include <linux/types.h>
|
|
#include <netdb.h>
|
|
+#if defined(__linux__)
|
|
+#include <netpacket/packet.h>
|
|
+#include <net/ethernet.h>
|
|
+#include <linux/types.h>
|
|
+#endif
|
|
#define closesocket(s) close(s)
|
|
typedef int SOCKET;
|
|
#ifndef INVALID_SOCKET
|