summaryrefslogtreecommitdiffstats
path: root/tcpsrv.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 /tcpsrv.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 'tcpsrv.c')
-rw-r--r--tcpsrv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcpsrv.c b/tcpsrv.c
index ae5f3371..955fb9b5 100644
--- a/tcpsrv.c
+++ b/tcpsrv.c
@@ -327,7 +327,7 @@ static int *create_tcp_socket(tcpsrv_t *pThis)
/* We need to enable BSD compatibility. Otherwise an attacker
* could flood our log files by sending us tons of ICMP errors.
*/
-#ifndef BSD
+#ifndef OS_BSD
if(net.should_use_so_bsdcompat()) {
if (setsockopt(*s, SOL_SOCKET, SO_BSDCOMPAT,
(char *) &on, sizeof(on)) < 0) {