Subject: gnome-vfs build problems
To: None <tech-pkg@netbsd.org>
From: Gavan Fantom <gavan@coolfactor.org>
List: tech-pkg
Date: 12/23/2003 17:48:57
On Solaris, gnome-vfs has problems building. This is because unistd.h does
things like

#define truncate truncate64
#define tell tell64

etc.

As a result, gnome-vfs bombs out with errors such as "structure has no
element truncate64".

The fix is to add

#undef truncate

or similar to the files which cause errors.

Is this suitable for adding as a patch to all platforms, or does it
need to be guarded with #ifdefs to apply to SunOS only?

ie. can anybody see any harm in #undef truncate on non-Solaris platforms?

-- 
Gillette - the best a man can forget