Closed Bug 729596 Opened 13 years ago Closed 13 years ago

mozglue/linker/szip.cpp compile error on Mac: ‘posix_fallocate’ was not declared

Categories

(Core :: mozglue, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla13

People

(Reporter: cpeterson, Assigned: glandium)

References

Details

Attachments

(1 file)

Compiling m-c on Mac gives the following compile error: /mozilla/inbound3/mozglue/linker/szip.cpp: In function ‘int main(int, char**)’: /mozilla/inbound3/mozglue/linker/szip.cpp:70: error: ‘posix_fallocate’ was not declared in this scope glandium's workaround patch: http://pastebin.mozilla.org/1490507
Summary: mozglue compile error on Mac: linker/szip.cpp: ‘posix_fallocate’ was not declared mozglue compile error on Mac: linker/szip.cpp: ‘posix_fallocate’ was not declared → mozglue/linker/szip.cpp compile error on Mac: ‘posix_fallocate’ was not declared mozglue/linker/szip.cpp compile error on Mac: ‘posix_fallocate’ was not declared
Component: General → mozglue
Product: Firefox → Core
QA Contact: general → mozglue
Assignee: nobody → mh+mozilla
Blocks: 686805
We could use the equivalent of posix_fallocate for mac, but since the file is filled sequentially anyways, and since it's a host program, it's not worth bothering.
Attachment #599693 - Flags: review?(taras.mozilla)
Comment on attachment 599693 [details] [diff] [review] Use ftruncate in szip instead of posix_fallocate I don't think I need to review trivial changes like this.
Attachment #599693 - Flags: review?(taras.mozilla) → review+
Inbound: https://hg.mozilla.org/integration/mozilla-inbound/rev/775aeed72aef Someone should probably land this directly on m-c.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla13
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: