diff --git a/include/ldap_config.h.in b/include/ldap_config.h.in index 59b5c673f3..b0167e24b2 100644 --- a/include/ldap_config.h.in +++ b/include/ldap_config.h.in @@ -28,9 +28,13 @@ /* directory for temporary files */ #if defined( _P_tmpdir ) -#define LDAP_TMPDIR _P_tmpdir +# define LDAP_TMPDIR _P_tmpdir +#elif defined( P_tmpdir ) +# define LDAP_TMPDIR P_tmpdir +#elif defined( _PATH_TMPDIR ) +# define LDAP_TMPDIR _PATH_TMPDIR #else -#define LDAP_TMPDIR LDAP_DIRSEP "tmp" +# define LDAP_TMPDIR LDAP_DIRSEP "tmp" #endif /* directories */