VirtualBox

Opened 13 years ago

Closed 8 years ago

#9227 closed enhancement (invalid)

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

Reported by: Robert Millan Owned by:
Component: other Version: VirtualBox 4.0.10
Keywords: Cc:
Guest type: other Host type: other

Description (last modified by aeichner)

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 (6)

alsa.diff (590 bytes ) - added by Robert Millan 13 years ago.
fbsd_version.diff (938 bytes ) - added by Robert Millan 13 years ago.
netif_freebsd.diff (1.1 KB ) - added by Robert Millan 13 years ago.
redundant_check.diff (982 bytes ) - added by Robert Millan 13 years ago.
aio_listio_max.diff (667 bytes ) - added by Robert Millan 13 years ago.
slirp.diff (359 bytes ) - added by Robert Millan 13 years ago.

Download all attachments as: .zip

Change History (9)

by Robert Millan, 13 years ago

Attachment: alsa.diff added

by Robert Millan, 13 years ago

Attachment: fbsd_version.diff added

by Robert Millan, 13 years ago

Attachment: netif_freebsd.diff added

by Robert Millan, 13 years ago

Attachment: redundant_check.diff added

by Robert Millan, 13 years ago

Attachment: aio_listio_max.diff added

by Robert Millan, 13 years ago

Attachment: slirp.diff added

comment:1 by Robert Millan, 13 years ago

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 by Robert Millan, 12 years ago

Any news about this?

comment:3 by aeichner, 8 years ago

Description: modified (diff)
Resolution: invalid
Status: newclosed

Please use the vbox-dev mailing list for such patch series.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use