Closed Bug 749533 Opened 12 years ago Closed 12 years ago

SkAdvancedTypefaceMetrics.cpp:19:52: fatal error: ApplicationServices/ApplicationServices.h: No such file or directory on Hurd and kFreeBSD

Categories

(Core :: Graphics, defect)

All
Other
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla15
Tracking Status
firefox12 --- affected
firefox13 --- affected
firefox14 --- affected

People

(Reporter: glandium, Assigned: glandium)

Details

Attachments

(1 file, 1 obsolete file)

      No description provided.
I'll check if more is needed.
Attachment #618940 - Flags: review?(bjacob)
Attachment #618940 - Attachment is obsolete: true
Attachment #618940 - Flags: review?(bjacob)
Comment on attachment 619001 [details] [diff] [review]
Add support for GNU/kFreeBSD and Hurd in SKIA

I worry that this relies on GLIBC not being used by unrelated operating systems. Did you mean (defined(__GLIBC__) && defined(__GNU__)) instead ?
(In reply to Benoit Jacob [:bjacob] from comment #3)
> Comment on attachment 619001 [details] [diff] [review]
> Add support for GNU/kFreeBSD and Hurd in SKIA
> 
> I worry that this relies on GLIBC not being used by unrelated operating
> systems. Did you mean (defined(__GLIBC__) && defined(__GNU__)) instead ?

GLIBC is what provides the "unix" libc. Whatever kernel it runs on will thus expose the libc functions. It so happens that GNU/kfreeBSD is such a system: it has the glibc, and uses a FreeBSD kernel. Its compiler defines __GLIBC__. GNU/Hurd, however, while it comes with glibc (obviously), doesn't define __GLIBC__. It defines __GNU__ instead.

So we need to check for both, individually.
Attachment #619001 - Flags: review?(bjacob) → review+
https://hg.mozilla.org/mozilla-central/rev/2408bf119fbf
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: