Closed Bug 550666 Opened 13 years ago Closed 13 years ago
Builds broken in memory/mozalloc/mozalloc
888 bytes, patch
|Details | Diff | Splinter Review|
Since the fix for bug 441324 landed, builds for all mozilla apps on FreeBSD (NetBSD and OpenBSD probably too) fail quite early with the following error: ... gmake: Entering directory `/work/build/browser/memory/mozalloc' mozalloc.cpp mozalloc_oom.cpp /work/src/mozilla/memory/mozalloc/mozalloc.cpp: In function 'void* moz_xvalloc(size_t)': /work/src/mozilla/memory/mozalloc/mozalloc.cpp:196: error: 'valloc' was not declared in this scope /work/src/mozilla/memory/mozalloc/mozalloc.cpp: In function 'void* moz_valloc(size_t)': /work/src/mozilla/memory/mozalloc/mozalloc.cpp:206: error: 'valloc' was not declared in this scope gmake: *** [mozalloc.o] Error 1 gmake: Leaving directory `/work/build/browser/memory/mozalloc' ... *BSD defines valloc in unistd.h (see http://man.freebsd.org/valloc)
Unconditionally including unistd.h would cause problems on Windows. This patch includes <unistd.h> only if XP_UNIX is defined.
Assignee: nobody → bugmail
Attachment #430814 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Unfortunately it appears this has bitrotted. Can you update the patch Marco?
Oops, it looks like rev bbbb2d668d0d (bug 550401) touched that file last thursday.
Attachment #430826 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a5
You need to log in before you can comment on or make changes to this bug.