--- a/src/AudioIOBase.cpp
+++ b/src/AudioIOBase.cpp
@@ -21,6 +21,7 @@
 #include "prefs/RecordingPrefs.h"
 #include "widgets/MeterPanelBase.h"
 
+#include "portaudio.h"
 #if USE_PORTMIXER
 #include "portmixer.h"
 #endif
