diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 1998-11-10 15:43:48 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 1998-11-10 15:43:48 +0000 |
commit | cca45053c3b87ab3d5b33867e96827b927018625 (patch) | |
tree | 2b0cf452ec1e6bd5bc8c5e104b0b45b0e1e50bec /sysutils/wmavgload/files | |
parent | bcc5aa3f92f77ff2b0b7520c739b9929e53665a4 (diff) |
Notes
Diffstat (limited to 'sysutils/wmavgload/files')
-rw-r--r-- | sysutils/wmavgload/files/patch-a0 | 36 | ||||
-rw-r--r-- | sysutils/wmavgload/files/patch-aa | 53 |
2 files changed, 89 insertions, 0 deletions
diff --git a/sysutils/wmavgload/files/patch-a0 b/sysutils/wmavgload/files/patch-a0 new file mode 100644 index 000000000000..efae9e59a14e --- /dev/null +++ b/sysutils/wmavgload/files/patch-a0 @@ -0,0 +1,36 @@ +*** Imakefile.orig Tue Jul 21 04:22:43 1998 +--- Imakefile Tue Jul 21 04:24:08 1998 +*************** +*** 2,8 **** + DESTDIR = /usr/X11R6 + BINDIR = /bin + +! XPMLIB = -L/usr/lib/X11 -L/opt/X11_Contrib/lib/sparc -lXpm -lm + DEPLIBS = $(DEPXLIB) + + /* uncomment -lrpcsvc at the end of the line below if compile on *sparc* */ +--- 2,8 ---- + DESTDIR = /usr/X11R6 + BINDIR = /bin + +! XPMLIB = -lXpm -lm + DEPLIBS = $(DEPXLIB) + + /* uncomment -lrpcsvc at the end of the line below if compile on *sparc* */ +*************** +*** 10,16 **** + + LINTLIBS = $(LINTXLIB) + +! EXTRA_INCLUDES = -I/opt/X11_Contrib/include + + /* if your compiler does not define linux + please add -Dlinux below (if you are on a linux box :) */ +--- 10,16 ---- + + LINTLIBS = $(LINTXLIB) + +! EXTRA_INCLUDES = + + /* if your compiler does not define linux + please add -Dlinux below (if you are on a linux box :) */ diff --git a/sysutils/wmavgload/files/patch-aa b/sysutils/wmavgload/files/patch-aa new file mode 100644 index 000000000000..169232141248 --- /dev/null +++ b/sysutils/wmavgload/files/patch-aa @@ -0,0 +1,53 @@ +*** get_load.c.orig Sat Jul 18 22:25:14 1998 +--- get_load.c Sat Jul 18 22:30:55 1998 +*************** +*** 1,4 **** +! #ifdef linux + + #include <stdio.h> + #include <fcntl.h> +--- 1,4 ---- +! #if defined (linux) || defined (__FreeBSD__) + + #include <stdio.h> + #include <fcntl.h> +*************** +*** 45,51 **** + /* pas de verif ... */ + } + +! #else + /* SVR4 */ + void GetLoad(float *small,float *medium,float *large) + { +--- 45,51 ---- + /* pas de verif ... */ + } + +! #elif defined(SVR4) + /* SVR4 */ + void GetLoad(float *small,float *medium,float *large) + { +*************** +*** 65,68 **** + *large = (float)res.avenrun[2]/FSCALE; + } + +! #endif +--- 65,80 ---- + *large = (float)res.avenrun[2]/FSCALE; + } + +! #else +! /* FreeBSD */ +! void GetLoad(float *small,float *medium,float *large) +! { +! double avenrun[3]; +! (void) getloadavg(avenrun, sizeof(avenrun) / sizeof(avenrun[0])); +! +! *small = (float)avenrun[0]; +! *medium = (float)avenrun[1]; +! *large = (float)avenrun[2]; +! } +! +! #endif |