Closed Bug 1151202 Opened 10 years ago Closed 10 years ago

libstagefright: Compilation with musl libc: sys/cdefs.h: No such file or directory

Categories

(Core :: Audio/Video, defect)

All
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: felix.janda, Assigned: felix.janda)

Details

Attachments

(1 file)

Attached patch Proposed patchSplinter Review
The compilation of media/libstagefright fails on musl libc (http://musl-libc.org) based linux systems because media/libstagefright/system/core/include/cutils/properties.h tries to include <sys/cdefs.h>, which is not provided by musl libc. cutils/properties.h is from android platform/system/core and it intends to include the bionic libc internal header <sys/cdefs.h> in order to get e.g. the defines __BIONIC_FORTIFY. Therefore including <sys/cdefs.h> is only necessary for android and for android it is automatically included by the POSIX header <sys/types.h>. So the include <sys/cdefs.h> can be safely replaced by <sys/types.h>.
Attachment #8588302 - Flags: review?(wkocher)
Comment on attachment 8588302 [details] [diff] [review] Proposed patch I'm not a reviewer for this, sorry.
Attachment #8588302 - Flags: review?(wkocher) → review?(cpearce)
Attachment #8588302 - Flags: review?(cpearce) → review+
Could someone do a try push for me? (I don't have commit access.)
Assignee: nobody → felix.janda
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: