blob: df146860bb1123bdd6f1ea10b135c8345ffc8da4 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
$NetBSD: patch-ae,v 1.3 2006/04/13 19:14:45 cube Exp $
--- server/gkrellmd-private.h.orig 2006-03-30 00:23:50.000000000 +0200
+++ server/gkrellmd-private.h
@@ -28,6 +28,10 @@
#endif
#endif
+#if defined(__DragonFly__)
+#define HAVE_GETADDRINFO 1
+#endif
+
#if defined(__FreeBSD__)
#include <sys/param.h>
#if __FreeBSD_version >= 400000
@@ -41,6 +45,7 @@
#if defined(__NetBSD__)
#define HAVE_GETADDRINFO 1
+#include <sys/param.h>
# if __NetBSD_Version__ <= 105010000
# define sa_family_t unsigned char
# endif
@@ -66,12 +71,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
@@ -88,6 +91,7 @@ extern int errno;
#define SENSOR_GROUP_MAINBOARD 0
#define SENSOR_GROUP_DISK 1
+#include <errno.h>
struct GkrellmdConfig
{
@@ -142,3 +146,4 @@ void gkrellmd_serve_setup(GkrellmdClie
GkrellmdMonitor *gkrellmd_init_mail_monitor(void);
+gint gkrellm_connect_to(gchar *, gint);
|