After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 124238 - Compilation fails on Darwin
Compilation fails on Darwin
Status: RESOLVED FIXED
Product: libegg
Classification: Other
Component: recent-files
unspecified
Other Mac OS
: Normal normal
: ---
Assigned To: Emmanuele Bassi (:ebassi)
gedit QA volunteers
Depends on:
Blocks:
 
 
Reported: 2003-10-09 20:21 UTC by Jerry Talkington
Modified: 2005-08-22 20:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fixes for Darwin. (2.65 KB, patch)
2003-10-09 20:22 UTC, Jerry Talkington
none Details | Review

Description Jerry Talkington 2003-10-09 20:21:39 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.
Comment 1 Jerry Talkington 2003-10-09 20:22:08 UTC
Created attachment 20605 [details] [review]
Fixes for Darwin.
Comment 2 Paolo Maggi 2003-10-21 15:48:14 UTC
I have partially applied your patch. 
The egg-recent part must be fixed in egg-recent itself.
Comment 3 Kjartan Maraas 2005-01-25 17:36:22 UTC
Was never applied it seems.
Comment 4 Emmanuele Bassi (:ebassi) 2005-08-22 20:22:28 UTC
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).