GNOME Bugzilla – Bug 124238
Compilation fails on Darwin
Last modified: 2005-08-22 20:22:28 UTC
There are a couple of places that gsize/int are switched (gsize is an unigned long on MacOS X.) <sys/types.h> needs to be included before dirent.h, and lockf isn't declared.
Created attachment 20605 [details] [review] Fixes for Darwin.
I have partially applied your patch. The egg-recent part must be fixed in egg-recent itself.
Was never applied it seems.
2005-08-22 Emmanuele Bassi <ebassi@cvs.gnome.org> * libegg/recent-files/egg-recent-model.c: (egg_recent_model_init), (egg_recent_model_poll_timeout), (egg_recent_model_finalize), (egg_recent_model_monitor): If FAM support is unavailable, manually poll the .recently-used file (patch by Dinoop Thomas, fixes bug #140153). * libegg/recent-files/egg-recent-model.c: fixes compilation on Darwin where lockf() isn't exported (patch by Jerry Talkington, fixes bug #124238). * libegg/recent-files/egg-recent-model.c: (egg_recent_model_clear): if FAM is not available, force update of the list when removing an item (patch by Mark McLoughlin, fixes bug #308779). * libegg/recent-files/egg-recent.h: added header guards; this is a convenience header, so you should not use it anyway (fixes bug #108101).