Closed
Bug 1237869
Opened 8 years ago
Closed 8 years ago
NSPR tweaks for building with Mozilla's build system
Categories
(NSPR :: NSPR, defect)
NSPR
NSPR
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ted, Assigned: ted)
References
Details
Attachments
(1 file, 2 obsolete files)
I hit just two things I needed to fix to make NSPR build with moz.build files: 1) The top-level configure defines WIN32_LEAN_AND_MEAN which makes a Windows header not get included for one file. 2) For Android the visibility flags are different which breaks a file that declares "extern void *__mmap2".
Assignee | ||
Comment 1•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/29983/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/29983/
Attachment #8706714 -
Flags: review?(mh+mozilla)
Assignee | ||
Comment 2•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/29985/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/29985/
Attachment #8706715 -
Flags: review?(mh+mozilla)
Assignee | ||
Comment 3•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/29987/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/29987/
Attachment #8706716 -
Flags: review?(mh+mozilla)
Assignee | ||
Comment 4•8 years ago
|
||
Comment on attachment 8706714 [details] MozReview Request: bug 1237869 - Tweak NSPR to build with Mozilla's build system. r?glandium Review request updated; see interdiff: https://reviewboard.mozilla.org/r/29983/diff/1-2/
Assignee | ||
Updated•8 years ago
|
Attachment #8706715 -
Attachment is obsolete: true
Attachment #8706715 -
Flags: review?(mh+mozilla)
Assignee | ||
Updated•8 years ago
|
Attachment #8706716 -
Attachment is obsolete: true
Attachment #8706716 -
Flags: review?(mh+mozilla)
Comment 5•8 years ago
|
||
Comment on attachment 8706714 [details] MozReview Request: bug 1237869 - Tweak NSPR to build with Mozilla's build system. r?glandium https://reviewboard.mozilla.org/r/29983/#review27659 ::: nsprpub/pr/src/md/unix/unix.c:2718 (Diff revision 2) > -extern void *__mmap2(void *, size_t, int, int, int, size_t); > + PR_IMPORT(void) *__mmap2(void *, size_t, int, int, int, size_t); No need for the extra whitespace at the beginning of the line :) ::: nsprpub/pr/src/md/windows/ntinrval.c:14 (Diff revision 2) > +#endif Why not add DEFINES['WIN32_LEAN_AND_MEAN'] = False to the nspr moz.build?
Attachment #8706714 -
Flags: review?(mh+mozilla)
Assignee | ||
Comment 6•8 years ago
|
||
https://reviewboard.mozilla.org/r/29983/#review27659 > Why not add DEFINES['WIN32_LEAN_AND_MEAN'] = False to the nspr moz.build? That doesn't work because the define comes from mozilla-config.h, which gets -included. The alternative would be to manually include the header it needs, but I was worried about breaking something wierd like WinCE.
Assignee | ||
Updated•8 years ago
|
Attachment #8706714 -
Flags: review?(mh+mozilla)
Assignee | ||
Comment 7•8 years ago
|
||
Comment on attachment 8706714 [details] MozReview Request: bug 1237869 - Tweak NSPR to build with Mozilla's build system. r?glandium Review request updated; see interdiff: https://reviewboard.mozilla.org/r/29983/diff/2-3/
Comment 8•8 years ago
|
||
Comment on attachment 8706714 [details] MozReview Request: bug 1237869 - Tweak NSPR to build with Mozilla's build system. r?glandium https://reviewboard.mozilla.org/r/29983/#review28091
Attachment #8706714 -
Flags: review?(mh+mozilla) → review+
Assignee | ||
Comment 9•8 years ago
|
||
https://hg.mozilla.org/projects/nspr/rev/3e2ddcbcd3b05ddd55f6a109c716350eee0b233a bug 1237869 - Tweak NSPR to build with Mozilla's build system. r=glandium
Assignee | ||
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 10•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/e506ae694a2216452514ad8327989f12e687b63b bug 1237869 - Tweak NSPR to build with Mozilla's build system. r=glandium
Comment 11•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/e506ae694a22
You need to log in
before you can comment on or make changes to this bug.
Description
•