--- a/lib/Support/PathV2.cpp	2013-04-05 22:10:04.000000000 +0200
+++ b/lib/Support/PathV2.cpp	2016-05-29 11:53:39.000000000 +0200
@@ -498,6 +498,14 @@
 
 #ifdef __APPLE__
   // On Darwin, use DARWIN_USER_TEMP_DIR or DARWIN_USER_CACHE_DIR.
+  // ...which are not defined in Tiger and earlier!
+#ifndef _CS_DARWIN_USER_TEMP_DIR
+#define _CS_DARWIN_USER_TEMP_DIR 65537
+#endif
+#ifndef _CS_DARWIN_USER_CACHE_DIR
+#define _CS_DARWIN_USER_CACHE_DIR 65538
+#endif
+
   int ConfName = erasedOnReboot? _CS_DARWIN_USER_TEMP_DIR
                                : _CS_DARWIN_USER_CACHE_DIR;
   size_t ConfLen = confstr(ConfName, 0, 0);
