summaryrefslogtreecommitdiff
path: root/mail/dk-milter/patches/patch-ac
blob: 9a6b4b625e80377bc6913b900f32f3e86e9a4af3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
$NetBSD: patch-ac,v 1.1 2006/01/08 18:13:08 joerg Exp $

--- include/sm/os/sm_os_freebsd.h.orig	2006-01-08 18:09:08.000000000 +0000
+++ include/sm/os/sm_os_freebsd.h
@@ -13,10 +13,18 @@
 **  Platform definitions for FreeBSD
 */
 
-#define SM_OS_NAME	"freebsd"
-
 #define SM_CONF_SYS_CDEFS_H	1
 
+#ifdef __DragonFly__)
+#define SM_OS_NAME	"dragonfly"
+#define MI_SOMAXCONN	-1
+#ifndef SM_CONF_STRL
+#  define SM_CONF_STRL		1
+#endif
+
+#else
+#define SM_OS_NAME	"freebsd"
+
 #if __FreeBSD__ >= 2
 #  include <osreldate.h> /* defines __FreeBSD_version */
 #  if __FreeBSD_version >= 199512	/* 2.2-current when it appeared */
@@ -29,6 +37,7 @@
 #    endif
 #  endif
 #endif
+#endif
 
 #ifndef SM_CONF_SHM
 # define SM_CONF_SHM	1