fix build on CURRENT
make portlint a bit more happy
This commit is contained in:
parent
7c68969800
commit
dba3cffec4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=557863
@ -16,9 +16,9 @@ RUN_DEPENDS= tcpserver:sysutils/ucspi-tcp
|
||||
|
||||
USES= sqlite tar:bzip2
|
||||
PLIST_FILES= bin/greylite \
|
||||
%%DNSBLENV%%bin/dnsblenv \
|
||||
%%UCSPI2SOCKET%%bin/ucspi2socket \
|
||||
man/man8/greylite.8.gz
|
||||
DNSBLENV_PLIST_FILES= bin/dnsblenv
|
||||
UCSPI2SOCKET_PLIST_FILES= bin/ucspi2socket
|
||||
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
|
11
mail/greylite/files/patch-logmsg.c
Normal file
11
mail/greylite/files/patch-logmsg.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- logmsg.c.orig 2020-12-12 20:08:57.283326000 +0000
|
||||
+++ logmsg.c 2020-12-12 20:09:24.496799000 +0000
|
||||
@@ -11,6 +11,8 @@
|
||||
char logmsg_msgbuf[LOGMSG_BUFLEN];
|
||||
int logmsg_inclpid; /* true iff process ID has to be prefixed to log msgs */
|
||||
pid_t logmsg_mypid; /* if log_prefixpid, then set to the PID of the process */
|
||||
+int loglevel; /* threshold for log messages relevance */
|
||||
+char *logprefix;
|
||||
|
||||
|
||||
int logmsg_init(const char *prefix) {
|
13
mail/greylite/files/patch-logmsg.h
Normal file
13
mail/greylite/files/patch-logmsg.h
Normal file
@ -0,0 +1,13 @@
|
||||
--- logmsg.h.orig 2020-12-12 20:08:48.656485000 +0000
|
||||
+++ logmsg.h 2020-12-12 20:09:08.664699000 +0000
|
||||
@@ -15,8 +15,8 @@
|
||||
#define LOG_DEBUG 7 /* debug-level messages */
|
||||
|
||||
|
||||
-int loglevel; /* threshold for log messages relevance */
|
||||
-char *logprefix;
|
||||
+extern int loglevel; /* threshold for log messages relevance */
|
||||
+extern char *logprefix;
|
||||
|
||||
int logmsg_init(const char *prefix);
|
||||
int logmsg(int prio, char *fmt, ...);
|
Loading…
Reference in New Issue
Block a user