Compile problem when getc_unlocked() is not available



Dear GTK gurus,

I ran into a problem when trying to compile GTK+2.4.2 on MacOSX 10.2.8.
The root cause is that getc_unlocked() is not available on my system, and this is not correctly handled in xdgmimemagic.c.

As a temporary solution, I have added the following to gtk/xdgmime/xdgmimemagic.c:
#ifndef HAVE_FLOCKFILE
#define getc_unlocked(f) getc(f)
#endif

Regards,
Julien




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]