mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-16 20:20:41 +01:00
FreeBSD: Fixed mulitple compile issues in plugins.
Also fixed headers for Freebsd in test tools.
This commit is contained in:
parent
3739e6c116
commit
2edfb087b8
@ -175,7 +175,7 @@ struct modConfData_s {
|
||||
static modConfData_t *loadModConf = NULL;/* modConf ptr to use for the current load process */
|
||||
static modConfData_t *runModConf = NULL;/* modConf ptr to use for the current load process */
|
||||
|
||||
#if HAVE_INOTIFY_INIT
|
||||
#if HAVE_INOTIFY_INIT
|
||||
/* support for inotify mode */
|
||||
|
||||
/* we need to track directories */
|
||||
@ -1869,12 +1869,15 @@ CODESTARTmodExit
|
||||
objRelease(errmsg, CORE_COMPONENT);
|
||||
objRelease(prop, CORE_COMPONENT);
|
||||
objRelease(ruleset, CORE_COMPONENT);
|
||||
#if HAVE_INOTIFY_INIT
|
||||
/* we use these vars only in inotify mode */
|
||||
if(dirs != NULL) {
|
||||
free(dirs->active.listeners);
|
||||
free(dirs->configured.listeners);
|
||||
free(dirs);
|
||||
}
|
||||
free(wdmap);
|
||||
#endif
|
||||
ENDmodExit
|
||||
|
||||
|
||||
|
||||
@ -31,7 +31,11 @@
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#if defined(__FreeBSD__)
|
||||
#include <sys/wait.h>
|
||||
#else
|
||||
#include <wait.h>
|
||||
#endif
|
||||
#include <sys/uio.h>
|
||||
#include "conf.h"
|
||||
#include "syslogd-types.h"
|
||||
|
||||
@ -36,7 +36,11 @@
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#if defined(__FreeBSD__)
|
||||
#include <sys/wait.h>
|
||||
#else
|
||||
#include <wait.h>
|
||||
#endif
|
||||
#include <pthread.h>
|
||||
#include "conf.h"
|
||||
#include "syslogd-types.h"
|
||||
|
||||
@ -28,7 +28,9 @@
|
||||
#include <arpa/inet.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
#if defined(__FreeBSD__)
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
static char *targetIP = "127.0.0.1";
|
||||
static int targetPort = 13500;
|
||||
|
||||
@ -7,6 +7,9 @@
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <arpa/inet.h>
|
||||
#if defined(__FreeBSD__)
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
static void
|
||||
errout(char *reason)
|
||||
|
||||
@ -26,7 +26,11 @@
|
||||
#include "config.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#if defined(__FreeBSD__)
|
||||
#include <sys/time.h>
|
||||
#else
|
||||
#include <time.h>
|
||||
#endif
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@ -36,6 +36,9 @@
|
||||
#include <getopt.h>
|
||||
#include <sys/un.h>
|
||||
#include <netdb.h>
|
||||
#if defined(__FreeBSD__)
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
|
||||
char *sockName = NULL;
|
||||
int sock;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user