pkgsrc/net/pload/patches/patch-ae
marino 69b6fa28fa net/pload: Fix partial patch
I'm not sure what happened here.  pload was building fine on DragonFly
with the proposed patches, but right now patch-ae only looks half updated.
Update the rest of patch-ae to finish the work of my prior commit.

Only affects DragonFly, which it's never built on.
2012-08-23 18:15:44 +00:00

28 lines
944 B
Text

$NetBSD: patch-ae,v 1.3 2012/08/23 18:15:44 marino Exp $
--- pload.c.orig 2000-02-01 07:11:24.000000000 +0000
+++ pload.c
@@ -40,7 +40,11 @@ static void HandleExit(void);
static void CheckForWMExit(Widget, XtPointer, XEvent*, Boolean*);
static void CheckForIconState(Widget, XtPointer, XEvent*, Boolean*);
static void update(XtPointer, XtIntervalId*);
+#if defined(__NetBSD__) || defined(__DragonFly__)
+static void make_label(char*,u_quad_t,double,double);
+#else
static void make_label(char*,unsigned long,double,double);
+#endif
static void do_rate(char*,double);
static void do_total(char*, double);
@@ -621,7 +625,11 @@ void do_rate(char *b, double rate)
}
/* stores label in global 'buff' */
+#if defined (__NetBSD__) || defined(__DragonFly__)
+void make_label(char *fmt, u_quad_t total, double rate, double max)
+#else
void make_label(char *fmt, unsigned long total, double rate, double max)
+#endif
{
char *p;
int i;