summaryrefslogtreecommitdiff
path: root/audio/csound6/patches/patch-Opcodes_cpumeter.c
blob: c4f0dfa42542c9f210851b808077cc43b944b333 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-Opcodes_cpumeter.c,v 1.2 2014/08/05 05:12:38 mrg Exp $

Add NetBSD and DragonFlyBSD support.

be best to patch this to use eg, getloadavg() or something not /proc.

--- Opcodes/cpumeter.c.orig	2014-01-07 08:53:48.000000000 -0800
+++ Opcodes/cpumeter.c	2014-02-12 23:36:40.000000000 -0800
@@ -16,7 +16,7 @@
  *
  */
 
-#if defined(__MACH__) || defined(LINUX)
+#if defined(__MACH__) || defined(LINUX) || defined(__NetBSD__) || defined(__DragonFly__)
 
 #include "csoundCore.h"
 #include <sys/resource.h>