summaryrefslogtreecommitdiff
path: root/net/radiusd-cistron/patches/patch-ae
diff options
context:
space:
mode:
Diffstat (limited to 'net/radiusd-cistron/patches/patch-ae')
-rw-r--r--net/radiusd-cistron/patches/patch-ae44
1 files changed, 44 insertions, 0 deletions
diff --git a/net/radiusd-cistron/patches/patch-ae b/net/radiusd-cistron/patches/patch-ae
new file mode 100644
index 00000000000..14b6fdf551b
--- /dev/null
+++ b/net/radiusd-cistron/patches/patch-ae
@@ -0,0 +1,44 @@
+$NetBSD: patch-ae,v 1.1 2005/12/07 03:45:21 joerg Exp $
+
+--- src/sysdep.h.orig 2005-12-07 03:35:42.000000000 +0000
++++ src/sysdep.h
+@@ -13,7 +13,7 @@
+
+ #ifdef __GNUC__
+ # define USE_LONGLONG 1
+-# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(bsdi)
++# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(bsdi) || defined(__DragonFly__)
+ # define PERCENT_LONGLONG "%qu"
+ # elif defined(__linux__)
+ # define PERCENT_LONGLONG "%Lu"
+@@ -22,7 +22,7 @@
+ # endif
+ #endif
+
+-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(bsdi) || defined(M_UNIX)
++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(bsdi) || defined(M_UNIX) || defined(__DragonFly__)
+ # ifndef NOSHADOW
+ # define NOSHADOW
+ # endif
+@@ -44,11 +44,7 @@ typedef unsigned long long UINT8;
+ #include <string.h>
+ #endif
+
+-#if defined(__FreeBSD__) || defined(bsdi)
+-# include <stdlib.h>
+-#else
+-# include <malloc.h>
+-#endif /* FreeBSD */
++#include <stdlib.h>
+
+ #if defined(aix)
+ #include <sys/select.h>
+@@ -83,7 +79,7 @@ typedef unsigned long long UINT8;
+ # define __hpux__
+ # endif
+ #endif
+-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(bsdi)
++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(bsdi) || defined(__DragonFly__)
+ # ifndef UTMP_FILE
+ # define UTMP_FILE "/var/run/utmp"
+ # endif