1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/audio/sbagen/files/patch-sbagen.c
Pietro Cerutti 0f2ec5f717 - Fix build with clang
- While at it, get rid of PTHREAD_LIBS
2013-03-18 11:04:01 +00:00

30 lines
729 B
C

--- sbagen.c.orig 2013-03-18 12:02:21.000000000 +0100
+++ sbagen.c 2013-03-18 12:02:43.000000000 +0100
@@ -141,7 +141,7 @@
#endif
#ifdef OSS_AUDIO
- #include <linux/soundcard.h>
+ #include <sys/soundcard.h>
//WAS: #include <sys/soundcard.h>
#endif
#ifdef WIN_AUDIO
@@ -181,7 +181,7 @@
void warn(char *fmt, ...) ;
void * Alloc(size_t len) ;
char * StrDup(char *str) ;
-inline int calcNow() ;
+static inline int calcNow() ;
void loop() ;
void outChunk() ;
void corrVal(int ) ;
@@ -1207,7 +1207,7 @@
time_ref_ms= 1000*tt->tm_sec + 60000*tt->tm_min + 3600000*tt->tm_hour;
}
-inline int
+static inline int
calcNow() {
struct timeval tv;
if (0 != gettimeofday(&tv, 0)) error("Can't get current time");