]> git.sur5r.net Git - openldap/blobdiff - include/ldap_config.h.in
Only set URANDOM_DEVICE if undefined
[openldap] / include / ldap_config.h.in
index a7d0f01cb9b1330ddd29b910572041b98009d8fe..b0167e24b2da974ee4374d96c5579d63e05064ca 100644 (file)
@@ -1,6 +1,6 @@
 /* $OpenLDAP$ */
 /*
- * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
+ * Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms are permitted only
 
 /* directory separator */
 #ifndef LDAP_DIRSEP
+#ifndef _WIN32
 #define LDAP_DIRSEP "/"
+#else
+#define LDAP_DIRSEP "\\"
+#endif
+#endif
+
+/* directory for temporary files */
+#if defined( _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"
 #endif
 
 /* directories */