pkgsrc/sysutils/gkrellm/patches/patch-ae
cube b7952b251a Update GKrellM packages to version 2.2.10. Better late than never.
2.2.10 - Thu Oct 26, 2006
-------------------------
        * Hans de Goede patches: 1) handle sysfs sensors which represent themselves
          as platform drivers (/sys/class/hwmon). 2) Add a libsensors sensor
          monitor interface which will be used preferentially over sysfs if
          libsensors is installed and sensors_init() on /etc/sensors.conf succeeds.
        * Add --without-libsensors command line option to force using /sysfs
          instead of libsensors for cases when running a new Linux sensor kernel
          module that is not yet supported by libsensors.  A fallback to /sysfs is
          automatic when libsensors detects zero sensors.
        * Linux sensor config names change with migration to libsensors, so attempt
          to automatically do a conversion so user won't have to redo sensor
          config.  But this doesn't handle client/server runs so for these
          sensor configs must be redone.
        * Michael Buesch patch: Add PowerMac G5 Windfarm sensor monitor interface.
        * David G. North patch: Add content length check to mbox mail checking to
          get good mail counts even if there's a mal-formed mime content package.
        * New Translation
          o pt_BR.po from Insigne Free Software (traducao--at--insignelinux.org)
        * Translation updates
          o de.po
          o it.po from Vincenzo Reale
        * Bugfixes
          o Christian Schmidt patch: add -pci- to sensor config compatibility fix.
          o gkrellmd plugins didn't get initial update data.
          o Don't limit mbmon detection to i386 architectures.
          o Flush gtk events pending between closing and moving gkrellm so
            window managers can get width updates before the move.
          o Fix warnings from newer gcc.
2007-05-03 20:21:27 +00:00

50 lines
1.2 KiB
Text

$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);