VirtualBox

Opened 13 years ago

Last modified 8 years ago

#9227 closed enhancement

GNU/kFreeBSD support: fixes in code specific to kernel of FreeBSD — at Initial Version

Reported by: Robert Millan Owned by:
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)

Change History (6)

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
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use