1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +03:00

pq/signal() portability patch. Also psql copy prompt fix.

This commit is contained in:
Bruce Momjian
1996-12-26 22:08:34 +00:00
parent 7f00f11c01
commit e8f43854ac
12 changed files with 67 additions and 77 deletions

View File

@@ -85,8 +85,7 @@
#if defined(dgux)
# define LINUX_ELF
# define NEED_UNION_SEMUN
# define __USE_POSIX_SIGNALS
# define -DUSE_POSIX_SIGNALS
# define USE_POSIX_SIGNALS
#endif
#if defined(hpux)

View File

@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pqsignal.h,v 1.4 1996/11/24 04:07:17 bryanh Exp $
* $Id: pqsignal.h,v 1.5 1996/12/26 22:08:13 momjian Exp $
*
* NOTES
* This shouldn't be in libpq, but the monitor and some other
@@ -17,14 +17,8 @@
#ifndef PQSIGNAL_H
#define PQSIGNAL_H
#include <signal.h>
typedef void (*pqsigfunc)(int);
extern pqsigfunc pqsignal(int signo, pqsigfunc func);
#if defined(USE_POSIX_SIGNALS)
#define signal(signo, handler) pqsignal(signo, (pqsigfunc)(handler))
#endif /* USE_POSIX_SIGNALS */
#endif /* PQSIGNAL_H */