Closed Bug 1220407 Opened 10 years ago Closed 10 years ago

Fix build on non-linux unix systems

Categories

(Toolkit :: Performance Monitoring, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla45
Tracking Status
firefox45 --- fixed
b2g-v2.5 --- fixed

People

(Reporter: gaston, Assigned: gaston)

Details

Attachments

(1 file)

Right now the build fails on OpenBSD: toolkit/components/perfmonitoring/nsPerformanceStats.cpp:871:17: error: variable has incomplete type 'struct rusage' 7:42.46 struct rusage rusage; We need to include sys/resource.h not only in the XP_LINUX case here https://dxr.mozilla.org/mozilla-central/source/toolkit/components/perfmonitoring/nsPerformanceStats.cpp?from=nsPerformanceStats.cpp#46 currently testing XP_UNIX instead, might want to use #elif XP_UNIX to not over-include stuff on macos...
I can review a patch, if you have one.
Assignee: nobody → landry
Attachment #8681655 - Flags: review?(dteller)
Comment on attachment 8681655 [details] [diff] [review] Use XP_UNIX instead of XP_LINUX Review of attachment 8681655 [details] [diff] [review]: ----------------------------------------------------------------- lgtm, thanks.
Attachment #8681655 - Flags: review?(dteller) → review+
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: