Closed Bug 1271590 Opened 8 years ago Closed 8 years ago

NetBSD: timespecadd conflict

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla49
Tracking Status
firefox49 --- fixed

People

(Reporter: wiz, Assigned: wiz)

Details

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:46.0) Gecko/20100101 Firefox/46.0
Build ID: 20160502172042

Steps to reproduce:

NetBSD's sys/time.h defines a timespecadd() macro (since 1996).
This breaks compilation of ConditionVariable.cpp which defines a static timespecadd function, but includes the header.
Renaming the function to some slightly different name fixes the problem.
Attachment #8750723 - Attachment is patch: true
Attachment #8750723 - Attachment mime type: text/x-c++src → text/plain
Component: Untriaged → JavaScript Engine
Product: Firefox → Core
Attachment #8750723 - Flags: review?(jdemooij)
Comment on attachment 8750723 [details] [diff] [review]
Patch renaming timespecadd to moz_timespecadd.

Review of attachment 8750723 [details] [diff] [review]:
-----------------------------------------------------------------

Makes sense, but please fix the filename (ConditionVariable.cpp instead of ConditionVariable.cpp.orig)
Attachment #8750723 - Flags: review?(jdemooij) → review+
Name fixed as requested, no other change to previous version.
Attachment #8750723 - Attachment is obsolete: true
Attachment #8750755 - Flags: review?(jdemooij)
Attachment #8750755 - Flags: review?(jdemooij) → review+
Assignee: nobody → wiz
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/d7408a1b68cb
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: