summaryrefslogtreecommitdiff
path: root/src/pcm/pcm_ladspa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pcm/pcm_ladspa.c')
-rw-r--r--src/pcm/pcm_ladspa.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pcm/pcm_ladspa.c b/src/pcm/pcm_ladspa.c
index ad73347d..9b2b32d7 100644
--- a/src/pcm/pcm_ladspa.c
+++ b/src/pcm/pcm_ladspa.c
@@ -32,6 +32,7 @@
* http://www.medianet.ag
*/
+#include "config.h"
#include <dirent.h>
#include <locale.h>
#include <math.h>
@@ -1147,7 +1148,7 @@ static int snd_pcm_ladspa_check_dir(snd_pcm_ladspa_plugin_t * const plugin,
const unsigned long ladspa_id)
{
DIR *dir;
- struct dirent * dirent;
+ struct dirent64 * dirent;
int len = strlen(path), err;
int need_slash;
char *filename;
@@ -1161,7 +1162,7 @@ static int snd_pcm_ladspa_check_dir(snd_pcm_ladspa_plugin_t * const plugin,
return -ENOENT;
while (1) {
- dirent = readdir(dir);
+ dirent = readdir64(dir);
if (!dirent) {
closedir(dir);
return 0;