Bug 2274

Summary: Build fixes for musl libc
Product: Portable OpenSSH Reporter: Maarten ter Huurne <maarten>
Component: MiscellaneousAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: normal CC: djm
Priority: P5    
Version: 6.6p1   
Hardware: All   
OS: Linux   
Bug Depends on:    
Bug Blocks: 2266    
Attachments:
Description Flags
Add #include <sys/param.h> in source files using "howmany" none

Description Maarten ter Huurne 2014-09-12 14:06:44 AEST
Created attachment 2472 [details]
Add #include <sys/param.h> in source files using "howmany"

When compiling with musl libc, the configure script finds the presence of the "howmany" macro, which musl defines in <sys/param.h>. However, only some of the sources using "howmany" actually include that header.

Attached is a patch to add the necessary #includes.
Comment 1 Damien Miller 2014-12-11 19:24:59 AEDT
Fixed - thanks. This will be in OpenSSH 6.8.

commit 48b68ce19ca42fa488960028048dec023f7899bb
Author: djm@openbsd.org <djm@openbsd.org>
Date:   Thu Dec 11 08:20:09 2014 +0000

    upstream commit
    
    explicitly include sys/param.h in files that use the
     howmany() macro; from portable
Comment 2 Damien Miller 2015-03-18 18:16:58 AEDT
openssh-6.8 is released