summaryrefslogtreecommitdiffstats
path: root/net.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon>2008-04-09 08:11:22 +0200
committerRainer Gerhards <rgerhards@adiscon>2008-04-09 08:11:22 +0200
commita61f8543ff89a9eef1bef1686fff1035f5f79249 (patch)
tree90e0ebe8077ea234c1ed9e4e2bdc807ec14120ca /net.c
parent9b5fa059d026777ca9d95b66b17d95296fd6c1ff (diff)
downloadrsyslog-a61f8543ff89a9eef1bef1686fff1035f5f79249.tar.gz
rsyslog-a61f8543ff89a9eef1bef1686fff1035f5f79249.tar.xz
rsyslog-a61f8543ff89a9eef1bef1686fff1035f5f79249.zip
our BSD define conflicted with a BSD system define
renamed to OS_BSD
Diffstat (limited to 'net.c')
-rw-r--r--net.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net.c b/net.c
index ab669323..d0c51021 100644
--- a/net.c
+++ b/net.c
@@ -580,7 +580,7 @@ static int isAllowedSender(struct AllowedSenders *pAllowRoot, struct sockaddr *p
static int
should_use_so_bsdcompat(void)
{
-#ifndef BSD
+#ifndef OS_BSD
static int init_done;
static int so_bsdcompat_is_obsolete;
@@ -608,9 +608,9 @@ should_use_so_bsdcompat(void)
so_bsdcompat_is_obsolete = 1;
}
return !so_bsdcompat_is_obsolete;
-#else /* #ifndef BSD */
+#else /* #ifndef OS_BSD */
return 1;
-#endif /* #ifndef BSD */
+#endif /* #ifndef OS_BSD */
}
#ifndef SO_BSDCOMPAT
/* this shall prevent compiler errors due to undfined name */
@@ -948,7 +948,7 @@ int *create_udp_socket(uchar *hostname, uchar *pszPort, int bIsServer)
/* We need to enable BSD compatibility. Otherwise an attacker
* could flood our log files by sending us tons of ICMP errors.
*/
-#if !defined(BSD) && !defined(__hpux)
+#if !defined(OS_BSD) && !defined(__hpux)
if (should_use_so_bsdcompat()) {
if (setsockopt(*s, SOL_SOCKET, SO_BSDCOMPAT,
(char *) &on, sizeof(on)) < 0) {