summaryrefslogtreecommitdiff
path: root/cups/tempfile.c
diff options
context:
space:
mode:
authorMichael R Sweet <michaelrsweet@gmail.com>2016-04-07 15:05:35 -0400
committerMichael R Sweet <michaelrsweet@gmail.com>2016-04-07 15:05:35 -0400
commit879ee463ea7b5ce77bbe4232d8de36874fcd7d91 (patch)
tree25473aba776c1b7d29374e7a554451da894575aa /cups/tempfile.c
parent515c3db932b8f74daf0b3c167aa1b988212255e3 (diff)
downloadcups-879ee463ea7b5ce77bbe4232d8de36874fcd7d91.tar.gz
Fix default TMPDIR path.
Diffstat (limited to 'cups/tempfile.c')
-rw-r--r--cups/tempfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cups/tempfile.c b/cups/tempfile.c
index 495eeb29c..772ca4ef5 100644
--- a/cups/tempfile.c
+++ b/cups/tempfile.c
@@ -71,11 +71,11 @@ cupsTempFd(char *filename, /* I - Pointer to buffer */
*/
if ((tmpdir = getenv("TMPDIR")) == NULL)
-# ifdef __APPLE__
+# if defined(__APPLE__) && !TARGET_OS_IOS
tmpdir = "/private/tmp"; /* /tmp is a symlink to /private/tmp */
# else
tmpdir = "/tmp";
-# endif /* __APPLE__ */
+# endif /* __APPLE__ && !TARGET_OS_IOS */
#endif /* WIN32 */
/*