mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-28 06:26:12 -04:00
51 lines
1.2 KiB
Plaintext
51 lines
1.2 KiB
Plaintext
$NetBSD: patch-ae,v 1.4 2007/05/03 20:21:27 cube Exp $
|
|
|
|
--- server/gkrellmd-private.h.orig 2006-10-26 23:21:59.000000000 +0200
|
|
+++ server/gkrellmd-private.h
|
|
@@ -29,6 +29,10 @@
|
|
#endif
|
|
#endif
|
|
|
|
+#if defined(__DragonFly__)
|
|
+#define HAVE_GETADDRINFO 1
|
|
+#endif
|
|
+
|
|
#if defined(__FreeBSD__)
|
|
#include <sys/param.h>
|
|
#if __FreeBSD_version >= 400000
|
|
@@ -42,6 +46,7 @@
|
|
|
|
#if defined(__NetBSD__)
|
|
#define HAVE_GETADDRINFO 1
|
|
+#include <sys/param.h>
|
|
# if __NetBSD_Version__ <= 105010000
|
|
# define sa_family_t unsigned char
|
|
# endif
|
|
@@ -67,12 +72,10 @@
|
|
|
|
#if !defined(__FreeBSD__) && !defined(__linux__) && !defined(__NetBSD__) \
|
|
&& !defined(__OpenBSD__) && !defined(__solaris__) && !defined(WIN32) \
|
|
- && !defined(__APPLE__)
|
|
+ && !defined(__APPLE__) && !defined(__DragonFly__)
|
|
#define USE_LIBGTOP
|
|
#endif
|
|
|
|
-extern int errno;
|
|
-
|
|
#define DEBUG_SYSDEP 0x1
|
|
#define DEBUG_MAIL 0x10
|
|
#define DEBUG_NET 0x20
|
|
@@ -89,6 +92,7 @@ extern int errno;
|
|
#define SENSOR_GROUP_MAINBOARD 0
|
|
#define SENSOR_GROUP_DISK 1
|
|
|
|
+#include <errno.h>
|
|
|
|
struct GkrellmdConfig
|
|
{
|
|
@@ -145,3 +149,4 @@ void gkrellmd_serve_setup(GkrellmdClie
|
|
|
|
GkrellmdMonitor *gkrellmd_init_mail_monitor(void);
|
|
|
|
+gint gkrellm_connect_to(gchar *, gint);
|