1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

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.
This commit is contained in:
Tom Lane
2001-12-03 17:44:52 +00:00
parent 4ea2b8f556
commit 18ab41eeef
4 changed files with 79 additions and 30 deletions

View File

@ -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.

View File

@ -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
/*
*------------------------------------------------------------------------