summaryrefslogtreecommitdiff
path: root/src/include/c.h
diff options
context:
space:
mode:
authorTom Lane2001-12-03 17:44:52 +0000
committerTom Lane2001-12-03 17:44:52 +0000
commit18ab41eeefa5e7d1f1bb5a9f9108be06bbe77689 (patch)
tree569261777c15a59fe376e78c7644d093603a5d84 /src/include/c.h
parent4ea2b8f556bff352cfc30613f040a08675eba1d2 (diff)
Add configure-time check whether sig_atomic_t is defined; if not,
provide a default definition equating it to 'int'. Should trigger only on machines with pre-ANSI-C header files, eg SunOS 4.1.x.
Diffstat (limited to 'src/include/c.h')
-rw-r--r--src/include/c.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/include/c.h b/src/include/c.h
index 201552d72b7..74bf434acb9 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: c.h,v 1.112 2001/12/02 11:38:40 petere Exp $
+ * $Id: c.h,v 1.113 2001/12/03 17:44:52 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -302,6 +302,11 @@ typedef unsigned long int uint64;
#endif /* not HAVE_LONG_INT_64 and not HAVE_LONG_LONG_INT_64 */
+/* sig_atomic_t is required by ANSI C, but may be missing on old platforms */
+#ifndef HAVE_SIG_ATOMIC_T
+typedef int sig_atomic_t;
+#endif
+
/*
* Size
* Size of any memory resident object, as returned by sizeof.