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:
@@ -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)
|
||||
|
@@ -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 */
|
||||
|
Reference in New Issue
Block a user