summaryrefslogtreecommitdiff
path: root/xinit.c
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2005-07-26 18:55:42 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2005-07-26 18:55:42 +0000
commitdb7faf36b93971eef4857d24efe0de155b7cdb19 (patch)
tree5f9f84465955152cfe6871022f71d62a2f4a3a1c /xinit.c
parente5280bb6562129bf7617a24784b19da4cbd7abc8 (diff)
Add config.h includes for modularization Use RETSIGTYPE if defined byXORG-6_8_99_900
autoconf in addition to Imake's SIGNALRETURNSINT. Use HAVE_WORKING_VFORK if defined by autoconf in addition to Imake's HAS_VFORK
Diffstat (limited to 'xinit.c')
-rw-r--r--xinit.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/xinit.c b/xinit.c
index fea283e..5ced5cd 100644
--- a/xinit.c
+++ b/xinit.c
@@ -1,4 +1,5 @@
/* $Xorg: xinit.c,v 1.5 2001/02/09 02:05:49 xorgcvs Exp $ */
+/* $XdotOrg: $ */
/*
@@ -27,6 +28,10 @@ in this Software without prior written authorization from The Open Group.
*/
/* $XFree86: xc/programs/xinit/xinit.c,v 3.32 2002/05/31 18:46:13 dawes Exp $ */
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <X11/Xlib.h>
#include <X11/Xos.h>
#include <stdio.h>
@@ -77,10 +82,12 @@ char **newenviron = NULL;
#define SHELL "sh"
#endif
-#ifndef HAS_VFORK
+#if !defined(HAS_VFORK) /* Imake */ && !defined(HAVE_WORKING_VFORK) /* autoconf*/
+#ifndef vfork
#define vfork() fork()
+#endif
#else
-#if defined(sun) && !defined(SVR4)
+#if (defined(sun) && !defined(SVR4)) || defined(HAVE_VFORK_H)
#include <vfork.h>
#endif
#endif
@@ -183,12 +190,15 @@ static void set_environment ( void );
static void Fatal(char *msg);
static void Error ( char *fmt, ... );
-
+#ifdef RETSIGTYPE /* autoconf AC_TYPE_SIGNAL */
+# define SIGVAL RETSIGTYPE
+#else /* Imake */
#ifdef SIGNALRETURNSINT
#define SIGVAL int
#else
#define SIGVAL void
#endif
+#endif /* RETSIGTYPE */
#ifdef X_NOT_POSIX
/* Can't use Error() in signal handlers */