From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Thierry Holtzer <Thierry(dot)Holtzer(at)ceram(dot)fr> |
Cc: | pgsql-hackers(at)postgreSQL(dot)org |
Subject: | Re: [HACKERS] 6.4.2/AIX: syslog support seems alright ? |
Date: | 1999-06-02 15:31:40 |
Message-ID: | 199906021531.LAA22251@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> Hello there,
>
> Trying to enable syslog support with 6.4.2 on AIX4.[12] (gcc 2.8.1), I
> have added:
> * in Makefile.custom:
Seems this is already fixed in the current tree:
void
write_syslog(int level, char *line)
{ static int openlog_done = 0;
if (UseSyslog >= 1) {
if (!openlog_done)
{
openlog_done = 1;
openlog(PG_LOG_IDENT, LOG_PID | LOG_NDELAY, PG_LOG_FACILITY);
}
> CFLAGS+=-DUSE_SYSLOG -D_XOPEN_EXTENDED_SOURCE
> (the -D_XOPEN_EXTENDED_SOURCE is for AIX's <syslog.h>
> * and in trace.c:
> *** trace.c.distrib Wed Jun 2 11:45:34 1999
> --- trace.c Wed Jun 2 10:01:18 1999
> ***************
> *** 21,26 ****
> --- 21,27 ----
>
> #ifdef USE_SYSLOG
> #include <syslog.h>
> + int openlog_done = 0;
> #endif
>
> #include "postgres.h"
>
>
> Seems to work fine.
> Could the -D_XOPEN_EXTENDED_SOURCE be a problem somehow ?
>
>
> TIA
> --
>
> Thierry Holtzer
>
> E-mail : Thierry(dot)Holtzer(at)ceram(dot)fr
> ----------------------------------------------------------
> Dptmt Informatique d'Entreprise
> CERAM Tel : +33 4 9395 4545
> Rue Dostoievski - BP 085 Fax : +33 4 9365 4524
> 06 902 Sophia-Antipolis Cedex - France
>
>
--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 1999-06-02 15:33:23 | Re: [HACKERS] nonblocking lock? |
Previous Message | Bruce Momjian | 1999-06-02 15:19:17 | Re: [HACKERS] Re: [SQL] Column name's length |