Bug 2274 - Build fixes for musl libc
Summary: Build fixes for musl libc
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Miscellaneous (show other bugs)
Version: 6.6p1
Hardware: All Linux
: P5 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks: V_6_8
  Show dependency treegraph
 
Reported: 2014-09-12 14:06 AEST by Maarten ter Huurne
Modified: 2015-03-18 18:16 AEDT (History)
1 user (show)

See Also:


Attachments
Add #include <sys/param.h> in source files using "howmany" (2.14 KB, patch)
2014-09-12 14:06 AEST, Maarten ter Huurne
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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