summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2005-07-26 16:58:27 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2005-07-26 16:58:27 +0000
commitd3ef3afdb8242590ed289d0c512289c51b6f3240 (patch)
tree64a737857f112b27ac1b008ab4c18e3dcb01a7d2 /process.c
parentaea947181d0185bf9512d71ea58bf8192b42c478 (diff)
downloadxorg-app-xauth-d3ef3afdb8242590ed289d0c512289c51b6f3240.tar.gz
Add config.h includes for modularization Use RETSIGTYPE if defined byXORG-6_8_99_901XORG-6_8_99_900
autoconf in addition to Imake's SIGNALRETURNSINT.
Diffstat (limited to 'process.c')
-rw-r--r--process.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/process.c b/process.c
index 3bb0f41..105305b 100644
--- a/process.c
+++ b/process.c
@@ -1,5 +1,5 @@
/* $Xorg: process.c,v 1.6 2001/02/09 02:05:38 xorgcvs Exp $ */
-/* $XdotOrg: $ */
+/* $XdotOrg: xc/programs/xauth/process.c,v 1.3 2004/04/24 23:26:55 alanc Exp $ */
/*
Copyright 1989, 1998 The Open Group
@@ -33,6 +33,10 @@ from The Open Group.
* Author: Jim Fulton, MIT X Consortium
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "xauth.h"
#include <ctype.h>
#include <errno.h>
@@ -626,11 +630,15 @@ static Bool xauth_locked = False; /* if has been locked */
static char *xauth_filename = NULL;
static volatile Bool dieing = False;
+#ifdef RETSIGTYPE /* autoconf AC_TYPE_SIGNAL */
+# define _signal_t RETSIGTYPE
+#else /* Imake */
#ifdef SIGNALRETURNSINT
#define _signal_t int
#else
#define _signal_t void
#endif
+#endif /* RETSIGTYPE */
/* poor man's puts(), for under signal handlers */
#define WRITES(fd, S) (void)write((fd), (S), strlen((S)))