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)
Thu, Mar 21, 3:47 AM
Unknown Object (File)
Feb 14 2024, 6:30 PM
Unknown Object (File)
Jan 10 2024, 1:43 AM
Unknown Object (File)
Jan 9 2024, 10:44 AM
Unknown Object (File)
Dec 27 2023, 8:49 PM
Unknown Object (File)
Dec 27 2023, 8:48 PM
Unknown Object (File)
Nov 6 2023, 4:38 AM
Unknown Object (File)
Oct 30 2023, 10:23 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
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #10967)

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 ↗(On Diff #10967)

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.