summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--startx.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/startx.cpp b/startx.cpp
index f911499..943fa78 100644
--- a/startx.cpp
+++ b/startx.cpp
@@ -279,7 +279,7 @@ if [ x"$enable_xauth" = x1 ] ; then
xauth -q -f "$xserverauthfile" << EOF
add :$dummy . $mcookie
EOF
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__CYGWIN__)
serverargs=${serverargs}" -auth '"${xserverauthfile}"'"
#else
serverargs=${serverargs}" -auth "${xserverauthfile}
@@ -313,7 +313,7 @@ else
fi
#else
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__CYGWIN__)
eval XINIT \"$client\" $clientargs -- \"$server\" $display $serverargs
#else
XINIT "$client" $clientargs -- "$server" $display $serverargs