Page MenuHomeFreeBSD

Fixup include protections for building on mips64 with clang
ClosedPublic

Authored by • lidl on Dec 9 2015, 3:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 25, 5:44 PM
Unknown Object (File)
Sat, Sep 12, 8:42 PM
Unknown Object (File)
Sat, Sep 12, 9:02 AM
Unknown Object (File)
Fri, Sep 11, 4:59 PM
Unknown Object (File)
Fri, Sep 11, 2:29 AM
Unknown Object (File)
Thu, Sep 10, 8:26 AM
Unknown Object (File)
Wed, Sep 9, 11:43 PM
Unknown Object (File)
Wed, Sep 9, 9:11 PM
Subscribers

Details

Summary

Apparently clang on mips64 defines "mips", which triggers an
include of a non-existant header. Another way to fix this
would be to remove the entire block of includes, since RISC/os
has been obsolete for a decade.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 1509
Build 1515: arc lint + arc unit

Event Timeline

• lidl retitled this revision from to Fixup include protections for building on mips64 with clang.
• lidl updated this object.
• lidl edited the test plan for this revision. (Show Details)
• lidl added reviewers: rpaulo, sbruno.
sbruno edited edge metadata.

Looks good here.

This revision is now accepted and ready to land.Dec 9 2015, 4:32 PM
contrib/top/loadavg.h
22

I'm good with this. Also acceptable, imho, would be && defined(BSD) since we include sys/param.h in an earlier include.
Have you checked upstream? Perhaps it is fixed there?

contrib/top/loadavg.h
22

The last upstream release (http://sourceforge.net/projects/unixtop/) was made in 2008.

Downloading that tarball and looking, the only difference in the loadavg.h file is a check for ibm032 (i.e. IBM PC/RT).

rpaulo edited edge metadata.
This revision was automatically updated to reflect the committed changes.