Bug 234909

Summary: [PATCH] audio/oss fix build on FreeBSD 11
Product: Ports & Packages Reporter: Craig Leres <leres>
Component: Individual Port(s)Assignee: Fernando ApesteguĂ­a <fernape>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Description Flags
patch leres: maintainer-approval+

Description Craig Leres freebsd_committer 2019-01-12 20:22:15 UTC
r489819 ("Unbreak port in FreeBSD 12 and 13-CURRENT") breaks the build for FreeBSD 11. This is because FreeBSD 11's sys/libkern.h has a prototype for memset() while later versions do not.

Here's an updated bsddefs.h patch that undefines memset when set and always defines memset to oss_memset.
Comment 1 Craig Leres freebsd_committer 2019-01-12 20:23:03 UTC
Created attachment 201080 [details]
Comment 2 commit-hook freebsd_committer 2019-01-12 23:04:44 UTC
A commit references this bug:

Author: fernape
Date: Sat Jan 12 23:04:06 UTC 2019
New revision: 490082
URL: https://svnweb.freebsd.org/changeset/ports/490082

  audio/oss: Fix breakage after r489819

  The patch in r489819 broke the build in 11.

  Address that and make sure this one builds in {11.2,12}{amd64,i386} and
  13-CURRENT i386

  PR:	234909
  Reported by:	leres@

Comment 3 Fernando ApesteguĂ­a freebsd_committer 2019-01-12 23:05:38 UTC
Committed similar patch.