Pullup ticket #3517 - requested by jnemeth
[pkgsrcv2.git] / sysutils / xmeter / patches / patch-aa
1 $NetBSD: patch-aa,v 1.2 2001/05/09 01:24:33 lukem Exp $
2
3 Use the right signal handler type.
4
5 --- xmeter.c    1998/10/30 10:41:09     1.1
6 +++ xmeter.c    1998/10/30 10:41:51
7 @@ -135,6 +135,8 @@
8  #define PORTMAP                /* Get right function declarations on Solaris 2 */
9  #include <rpc/rpc.h>
10  #include <rpc/pmap_prot.h>
11 +#undef FSHIFT          /* Use protocol's shift and scale values */
12 +#undef FSCALE
13  #include <rpcsvc/rstat.h>
14  /*
15   * We need the definitions of CP_USER, CP_NICE and CP_SYS.  Some systems
16 @@ -231,7 +228,7 @@
17      char       *name;          /* Name of stat for menu widget         */
18  } STATDATA;
19  
20 -#if defined(SVR4) || defined(sgi)
21 +#if defined(SVR4) || defined(sgi) || (defined(BSD) && BSD >= 199306)
22  #define SIGTYPE        void
23  #else
24  #define SIGTYPE        int