openbsd-ports/net/radiusd-cistron/patches/patch-src_sysdep_h

36 lines
1.0 KiB
Plaintext
Raw Normal View History

$OpenBSD: patch-src_sysdep_h,v 1.4 2002/09/30 15:19:40 danh Exp $
--- src/sysdep.h.orig Fri Dec 1 11:13:24 2000
+++ src/sysdep.h Sun Sep 29 23:43:38 2002
@@ -16,7 +16,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;
2001-12-17 15:47:47 -05:00
@@ -28,7 +28,7 @@ typedef unsigned long UINT4;
2000-05-25 21:44:10 -04:00
#include <string.h>
#endif
2001-12-17 15:47:47 -05:00
-#if defined(__FreeBSD__) || defined(bsdi)
+#if defined(__FreeBSD__) || defined(bsdi) || defined(__OpenBSD__)
2000-05-25 21:44:10 -04:00
# include <stdlib.h>
#else
# include <malloc.h>
2001-12-17 15:47:47 -05:00
@@ -70,6 +70,13 @@ typedef unsigned long UINT4;
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(bsdi)
# ifndef UTMP_FILE
# define UTMP_FILE "/var/run/utmp"
+# endif
+# define ut_user ut_name
+#endif
2000-05-25 21:44:10 -04:00
+#if defined(__OpenBSD__)
+# include <utmp.h>
+# ifndef UTMP_FILE
+# define UTMP_FILE _PATH_UTMP
2001-12-17 15:47:47 -05:00
# endif
# define ut_user ut_name
#endif