summaryrefslogtreecommitdiff
path: root/audio/csound-bath/patches/patch-ak
blob: 5c62272dec8c4eda94c4fcb9ef11c4e8bf1a620c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$NetBSD: patch-ak,v 1.1.1.1 2001/04/27 17:17:17 wiz Exp $

--- aops.c.orig	Thu Apr  5 13:41:56 2001
+++ aops.c	Thu Apr  5 13:42:30 2001
@@ -1,8 +1,13 @@
 #include "cs.h"		/*					AOPS.C	*/
 #include "aops.h"
-#include <math.h>
+#include <math.h>
 #include <time.h>
 
+#ifdef LINUX
+#include <sys/time.h>
+#include <unistd.h>
+#endif
+
 static	double	eipt3=8.3333333, oct;
 #define	logtwo	(0.693147)
 
@@ -421,8 +426,6 @@
 #ifdef LINUX
 void rtclock(EVAL *p)
 {
-#include <sys/time.h>
-#include <unistd.h>
     struct timeval tv;
     struct timezone tz;
     gettimeofday(&tv, &tz);