| @@ -1,28 +1,28 @@ | | | @@ -1,28 +1,28 @@ |
1 | $NetBSD: patch-ae,v 1.2 2012/08/11 17:20:23 marino Exp $ | | 1 | $NetBSD: patch-ae,v 1.3 2012/08/23 18:15:44 marino Exp $ |
2 | | | 2 | |
3 | --- pload.c.orig 2000-02-01 07:11:24.000000000 +0000 | | 3 | --- pload.c.orig 2000-02-01 07:11:24.000000000 +0000 |
4 | +++ pload.c | | 4 | +++ pload.c |
5 | @@ -40,7 +40,11 @@ static void HandleExit(void); | | 5 | @@ -40,7 +40,11 @@ static void HandleExit(void); |
6 | static void CheckForWMExit(Widget, XtPointer, XEvent*, Boolean*); | | 6 | static void CheckForWMExit(Widget, XtPointer, XEvent*, Boolean*); |
7 | static void CheckForIconState(Widget, XtPointer, XEvent*, Boolean*); | | 7 | static void CheckForIconState(Widget, XtPointer, XEvent*, Boolean*); |
8 | static void update(XtPointer, XtIntervalId*); | | 8 | static void update(XtPointer, XtIntervalId*); |
9 | +#if defined(__NetBSD__) || defined(__DragonFly__) | | 9 | +#if defined(__NetBSD__) || defined(__DragonFly__) |
10 | +static void make_label(char*,u_quad_t,double,double); | | 10 | +static void make_label(char*,u_quad_t,double,double); |
11 | +#else | | 11 | +#else |
12 | static void make_label(char*,unsigned long,double,double); | | 12 | static void make_label(char*,unsigned long,double,double); |
13 | +#endif | | 13 | +#endif |
14 | static void do_rate(char*,double); | | 14 | static void do_rate(char*,double); |
15 | static void do_total(char*, double); | | 15 | static void do_total(char*, double); |
16 | | | 16 | |
17 | @@ -621,7 +625,11 @@ void do_rate(char *b, double rate) | | 17 | @@ -621,7 +625,11 @@ void do_rate(char *b, double rate) |
18 | } | | 18 | } |
19 | | | 19 | |
20 | /* stores label in global 'buff' */ | | 20 | /* stores label in global 'buff' */ |
21 | +#ifdef __NetBSD__ | | 21 | +#if defined (__NetBSD__) || defined(__DragonFly__) |
22 | +void make_label(char *fmt, u_quad_t total, double rate, double max) | | 22 | +void make_label(char *fmt, u_quad_t total, double rate, double max) |
23 | +#else | | 23 | +#else |
24 | void make_label(char *fmt, unsigned long total, double rate, double max) | | 24 | void make_label(char *fmt, unsigned long total, double rate, double max) |
25 | +#endif | | 25 | +#endif |
26 | { | | 26 | { |
27 | char *p; | | 27 | char *p; |
28 | int i; | | 28 | int i; |