openbsd-ports/net/radiusd-cistron/patches/patch-src_sysdep_h
2004-07-12 13:32:11 +00:00

36 lines
1.0 KiB
Plaintext

$OpenBSD: patch-src_sysdep_h,v 1.5 2004/07/12 13:32:11 danh Exp $
--- src/sysdep.h.orig Wed Jun 4 11:45:28 2003
+++ src/sysdep.h Mon Jul 12 08:26:45 2004
@@ -28,7 +28,7 @@
# endif
#endif
-#if defined(__alpha) && (defined(__osf__) || defined(__linux__))
+#if defined(__alpha) && (defined(__osf__) || defined(__linux__)) || defined(__OpenBSD__)
typedef unsigned int UINT4;
#else
typedef unsigned long UINT4;
@@ -44,7 +44,7 @@ typedef unsigned long long UINT8;
#include <string.h>
#endif
-#if defined(__FreeBSD__) || defined(bsdi)
+#if defined(__FreeBSD__) || defined(bsdi) || defined(__OpenBSD__)
# include <stdlib.h>
#else
# include <malloc.h>
@@ -86,6 +86,13 @@ typedef unsigned long long UINT8;
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(bsdi)
# ifndef UTMP_FILE
# define UTMP_FILE "/var/run/utmp"
+# endif
+# define ut_user ut_name
+#endif
+#if defined(__OpenBSD__)
+# include <utmp.h>
+# ifndef UTMP_FILE
+# define UTMP_FILE _PATH_UTMP
# endif
# define ut_user ut_name
#endif