From: Pascal Stumpf Date: Mon, 19 Nov 2012 15:22:47 +0000 (+0100) Subject: On OpenBSD, use FILE_MAP_OPTIMIZED. X-Git-Tag: 2.2.0d~23 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b64f79b1b8a685b775b9ae93612c35770ea956ce;p=oweals%2Fcde.git On OpenBSD, use FILE_MAP_OPTIMIZED. This has the effect of not performing a tt call each time in ResolveLocalPathName() if we're on the local host anyway. Drastically reduces dtfile startup time. --- diff --git a/cde/programs/dtfile/Imakefile b/cde/programs/dtfile/Imakefile index 11251123..279389c2 100644 --- a/cde/programs/dtfile/Imakefile +++ b/cde/programs/dtfile/Imakefile @@ -24,6 +24,10 @@ SYS_LIBRARIES = DtClientSysLibs DtClientExtraLibs EXTRA_DEFINES = -D_TOOLTALK #endif +#ifdef OpenBSDArchitecture +EXTRA_DEFINES = -DFILE_MAP_OPTIMIZE +#endif + #if defined (SunArchitecture) EXTRA_CCOPTIONS = -xF #endif