summaryrefslogtreecommitdiff
path: root/xinit.c
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremy@yuffie.local>2007-12-15 15:01:02 -0800
committerJeremy Huddleston <jeremy@yuffie.local>2007-12-15 15:01:02 -0800
commitf5db2f6bc21b8d589b92c0f1d60bd6ec8da21ae0 (patch)
tree160161b98aef2e8ad4a2d6f5d10a3678c64b4e7a /xinit.c
parentc0246278393f9440717eea292a3d31440f7972dd (diff)
Added Apple launchd support
Diffstat (limited to 'xinit.c')
-rw-r--r--xinit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xinit.c b/xinit.c
index 39ab3ec..e4bdc6d 100644
--- a/xinit.c
+++ b/xinit.c
@@ -171,7 +171,7 @@ char *displayNum;
char *program;
Display *xd; /* server connection */
#ifndef SYSV
-#if defined(__CYGWIN__) || defined(SVR4) || defined(_POSIX_SOURCE) || defined(CSRG_BASED) || defined(__UNIXOS2__) || defined(Lynx)
+#if defined(__CYGWIN__) || defined(SVR4) || defined(_POSIX_SOURCE) || defined(CSRG_BASED) || defined(__UNIXOS2__) || defined(Lynx) || defined(__APPLE__)
int status;
#else
union wait status;
@@ -495,7 +495,7 @@ processTimeout(int timeout, char *string)
break;
alarm(0);
#else /* SYSV */
-#if defined(SVR4) || defined(_POSIX_SOURCE) || defined(Lynx)
+#if defined(SVR4) || defined(_POSIX_SOURCE) || defined(Lynx) || defined(__APPLE__)
if ((pidfound = waitpid(serverpid, &status, WNOHANG)) == serverpid)
break;
#else