summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xinitrc.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/xinitrc.cpp b/xinitrc.cpp
index e01b9e7..c44e0fd 100644
--- a/xinitrc.cpp
+++ b/xinitrc.cpp
@@ -9,7 +9,15 @@ sysmodmap=XINITDIR/.Xmodmap
XCOMM merge in defaults and keymaps
if [ -f $sysresources ]; then
+#ifdef __APPLE__
+ if [ -x /usr/bin/cpp ] ; then
+ XRDB -merge $sysresources
+ else
+ XRDB -nocpp -merge $sysresources
+ fi
+#else
XRDB -merge $sysresources
+#endif
fi
if [ -f $sysmodmap ]; then
@@ -17,7 +25,15 @@ if [ -f $sysmodmap ]; then
fi
if [ -f $userresources ]; then
+#ifdef __APPLE__
+ if [ -x /usr/bin/cpp ] ; then
+ XRDB -merge $userresources
+ else
+ XRDB -nocpp -merge $userresources
+ fi
+#else
XRDB -merge $userresources
+#endif
fi
if [ -f $usermodmap ]; then