/* * Copyright (c) 1995, 1996 Gunther Schadow. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * Modified for Sun support by Peter Weiss * (Peter.Weiss@Informatik.Uni-Oldenburg.De) */ #ifndef PG_CONFIG_H_ #define PG_CONFIG_H_ #include #include /* * The number of characters left in the read buffer of the FILE * structure. Try to figure it out from your "stdio.h" file. The * parameter in the following definition is a pointer to FILE * (FILE *fp). */ #define CHARS_LEFT(fp) (fp->_cnt) /* * If your C++ compiler knows the `bool' type comment out the following * definition. */ #define CXX_HAVE_BOOL 1 /* * LOGGING FACILITY */ /* * If you want logging messages of type L_AUDIT, L_ERROR and L_FATAL to * go to the "syslog", define this. Uses the facility "LOG_AUTH", and the * priorities LOG_NOTICE, LOG_ERR and LOG_ALERT, respectively. * Note that this feature can be turned on regardless if your system has * syslog(3) or if you defined NEED_SYSLOG. * #define SYSLOG 1 */ /* * This is the facility used for logging. Ususally, this will be * LOG_AUTH, but on some systems, this may not exist, try LOG_DAEMON * instead (or look into the syslog manpage for available options) */ #define SYSLOG_FC LOG_AUTH /* * system console - if a severe error happens at startup, write * a message to this file and aborts. */ #define CONSOLE "/dev/console" /* * The administrator - if a severe error happens (lprintf called * with log_level L_FATAL) and writing to CONSOLE is not possible, * the logfile will be mailed to him */ #define ADMIN "root" /* * The mailer program to use for passing urgent log messages to the * administrator */ #define MAILER "/usr/lib/sendmail" /* * Default name of the log file */ #define LOG_PATH "hl7.log" /* * Default log error level threshold. Possible error levels are * L_FATAL, L_ERROR, L_WARN, L_AUDIT, L_MESG, L_NOISE, L_JUNK. */ #define LOG_LEVEL L_JUNK /* * Whether "\n"s and "\c"s in the messages should start a new line * in the logfile */ #define LOG_CR_NEWLINE /************************************************************ * You should not have to change anything below this line */ #if __GNUG__ # if __GNUC_MINOR__ > 5 # ifdef CXX_HAVE_BOOL # undef CXX_HAVE_BOOL # endif # define CXX_HAVE_BOOL 1 # endif #endif #if !defined(__cplusplus) || !CXX_HAVE_BOOL typedef int bool; #endif typedef int result; extern const char *const sys_errlist[]; extern char *optarg; extern int optind; #include #endif /* ! PG_CONFIG_H_ */