aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2001-12-03 17:44:52 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2001-12-03 17:44:52 +0000
commit18ab41eeefa5e7d1f1bb5a9f9108be06bbe77689 (patch)
tree569261777c15a59fe376e78c7644d093603a5d84 /src
parent4ea2b8f556bff352cfc30613f040a08675eba1d2 (diff)
downloadpostgresql-18ab41eeefa5e7d1f1bb5a9f9108be06bbe77689.tar.gz
postgresql-18ab41eeefa5e7d1f1bb5a9f9108be06bbe77689.zip
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')
-rw-r--r--src/include/c.h7
-rw-r--r--src/include/pg_config.h.in5
2 files changed, 10 insertions, 2 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.
diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in
index 19766b81830..8e84fa42197 100644
--- a/src/include/pg_config.h.in
+++ b/src/include/pg_config.h.in
@@ -8,7 +8,7 @@
* or in pg_config.h afterwards. Of course, if you edit pg_config.h, then your
* changes will be overwritten the next time you run configure.
*
- * $Id: pg_config.h.in,v 1.14 2001/12/02 11:38:40 petere Exp $
+ * $Id: pg_config.h.in,v 1.15 2001/12/03 17:44:52 tgl Exp $
*/
#ifndef PG_CONFIG_H
@@ -697,10 +697,13 @@ extern int fdatasync(int fildes);
/* Define if you have on_exit() */
#undef HAVE_ON_EXIT
+/* Define if the corresponding types are defined in standard headers */
#undef HAVE_INT8
#undef HAVE_UINT8
#undef HAVE_INT64
#undef HAVE_UINT64
+#undef HAVE_SIG_ATOMIC_T
+
/*
*------------------------------------------------------------------------