Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita2661b5

Browse files
committed
oops, in v7.x its USE_SYSLOG, not ENABLE_SYSLOGmodify config.h.in so that it gets set by configure properly
1 parent6b359b5 commita2661b5

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

‎src/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6540,7 +6540,7 @@ fi
65406540
ifeval"test\"`echo'$ac_cv_func_'syslog`\" = yes";then
65416541
echo"$ac_t""yes"1>&6
65426542
cat>> confdefs.h<<\EOF
6543-
#defineENABLE_SYSLOG 1
6543+
#defineUSE_SYSLOG 1
65446544
EOF
65456545

65466546
else

‎src/configure.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ AC_TRY_LINK([#include <setjmp.h>],
946946

947947
AC_ARG_ENABLE(syslog, [ --enable-syslog enable logging to syslog],
948948
[case $enableval in y|ye|yes)
949-
AC_CHECK_FUNC(syslog, [AC_DEFINE(ENABLE_SYSLOG)], [AC_MSG_ERROR([no syslog interface found])])
949+
AC_CHECK_FUNC(syslog, [AC_DEFINE(USE_SYSLOG)], [AC_MSG_ERROR([no syslog interface found])])
950950
;;
951951
esac]
952952
)

‎src/include/config.h.in

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* or in config.h afterwards. Of course, if you edit config.h, then your
99
* changes will be overwritten the next time you run configure.
1010
*
11-
* $Id: config.h.in,v 1.113 2000/05/12 13:58:25 scrappy Exp $
11+
* $Id: config.h.in,v 1.113.2.1 2000/08/28 20:27:32 scrappy Exp $
1212
*/
1313

1414
#ifndefCONFIG_H
@@ -163,14 +163,6 @@
163163
*/
164164
/* #define ELOG_TIMESTAMPS */
165165

166-
/*
167-
* USE_SYSLOG: use syslog for elog and error messages printed by tprintf
168-
* and eprintf. This must be activated with the syslog flag in pg_options
169-
* (syslog=0 for stdio, syslog=1 for stdio+syslog, syslog=2 for syslog).
170-
* For information see backend/utils/misc/trace.c (Massimo Dal Zotto).
171-
*/
172-
/* #define USE_SYSLOG */
173-
174166
/* Debug #defines */
175167
/* #define IPORTAL_DEBUG */
176168
/* #define HEAPDEBUGALL */
@@ -208,6 +200,15 @@
208200
*------------------------------------------------------------------------
209201
*/
210202

203+
/*
204+
* USE_SYSLOG: use syslog for elog and error messages printed by tprintf
205+
* and eprintf. This must be activated with the syslog flag in pg_options
206+
* (syslog=0 for stdio, syslog=1 for stdio+syslog, syslog=2 for syslog).
207+
* For information see backend/utils/misc/trace.c (Massimo Dal Zotto).
208+
*/
209+
#undef USE_SYSLOG
210+
211+
211212
/* Set to 1 if you want to USE_LOCALE */
212213
#undef USE_LOCALE
213214

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp