summaryrefslogtreecommitdiff
path: root/privileged_startx
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@freedesktop.org>2008-11-28 23:23:14 -0800
committerJeremy Huddleston <jeremyhu@freedesktop.org>2008-11-28 23:23:14 -0800
commit754efe651165ea7dd034f6b0ce75ef785deab826 (patch)
treebf6601d6a23c903a9c14e596c8c6740b74ddc89e /privileged_startx
parentf04db53e71c681379ec49494c9ab727bc5269b30 (diff)
OSX Tiger: Hopefully the last fix for Tiger users...
Diffstat (limited to 'privileged_startx')
-rw-r--r--privileged_startx/client.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/privileged_startx/client.c b/privileged_startx/client.c
index 2a24a70..a33dd02 100644
--- a/privileged_startx/client.c
+++ b/privileged_startx/client.c
@@ -34,6 +34,8 @@
#include <stdlib.h>
#include <stdbool.h>
+#include <AvailabilityMacros.h>
+
#include "privileged_startx.h"
int client_main(void) {
@@ -42,7 +44,11 @@ int client_main(void) {
kr = bootstrap_look_up(bootstrap_port, BOOTSTRAP_NAME, &mp);
if (kr != KERN_SUCCESS) {
+#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1050
fprintf(stderr, "bootstrap_look_up(): %s\n", bootstrap_strerror(kr));
+#else
+ fprintf(stderr, "bootstrap_look_up(): %ul\n", (unsigned long)kr);
+#endif
exit(EXIT_FAILURE);
}