~ruther/guix-local

ref: f2bfe1cd76bd8d10a35c6c76c856c8f6cf1fdd66 guix-local/gnu/packages/patches/audacity-add-include.patch -rw-r--r-- 558 bytes
f2bfe1cd — Leo Famulari gnu: linux-libre 5.10: Update to 5.10.87. 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Without <sys/time.h>, gettimeofday is undefined.

diff --git a/src/AudioIO.cpp b/src/AudioIO.cpp
index 0187e3962..e15d55f4c 100644
--- a/src/AudioIO.cpp
+++ b/src/AudioIO.cpp
@@ -479,6 +479,8 @@ time warp info and AudioIOListener and whether the playback is looped.
 #include "../lib-src/portmidi/porttime/porttime.h"
 #include "../lib-src/header-substitutes/allegro.h"
 
+#include <sys/time.h>
+
    #define MIDI_SLEEP 10 /* milliseconds */
    // how long do we think the thread that fills MIDI buffers,
    // if it is separate from the portaudio thread,