VirtualBox

Ticket #9227 (new enhancement)

Opened 3 years ago

Last modified 2 years ago

GNU/kFreeBSD support: fixes in code specific to kernel of FreeBSD

Reported by: rmh Owned by:
Priority: major Component: other
Version: VirtualBox 4.0.10 Keywords:
Cc: Guest type: other
Host type: other

Description

Here are a few fixes for code that is specific to kernel of FreeBSD. Some of the fixes also improve FreeBSD support, some don't.

  • alsa.diff: FreeBSD doesn't support ALSA. It supports PULSE though.
  • fbsd_version.diff: Descriptor index transition happened specifically n 700044. This makes the check more accurate on FreeBSD. On GNU/kFreeBSD it is needed because __FreeBSD__ macro isn't available (__FreeBSD_version is available only when building kernel modules).
  • netif_freebsd.diff: Glibc portability fix (include <stdlib.h> and avoid using private definitions which are FreeBSD-only).
  • redundant_check.diff: There's no need to check for RT_OS_FREEBSD in a file that is already FreeBSD-only.
  • aio_listio_max.diff: Glibc doesn't provide AIO_LISTIO_MAX. Instead it has to be queried in rntime with sysconf().
  • slirp.diff: Building slirp.c on Glibc requires _GNU_SOURCE (otherwise POLLRDNORM is not available)

Attachments

alsa.diff Download (590 bytes) - added by rmh 3 years ago.
fbsd_version.diff Download (938 bytes) - added by rmh 3 years ago.
netif_freebsd.diff Download (1.1 KB) - added by rmh 3 years ago.
redundant_check.diff Download (982 bytes) - added by rmh 3 years ago.
aio_listio_max.diff Download (667 bytes) - added by rmh 3 years ago.
slirp.diff Download (359 bytes) - added by rmh 3 years ago.

Change History

Changed 3 years ago by rmh

Changed 3 years ago by rmh

Changed 3 years ago by rmh

Changed 3 years ago by rmh

Changed 3 years ago by rmh

Changed 3 years ago by rmh

comment:1 Changed 3 years ago by rmh

Btw, all patches I have submitted here are copyright 2011 Robert Millan and I hereby license them under the MIT license ( http://www.virtualbox.org/wiki/MIT%20license)

comment:2 Changed 2 years ago by rmh

Any news about this?

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use