Continue the work in commit
ba86ac55 ("conf: Use LFS calls when reading
config files") and fix the PCM LADSPA code, too.
Fixes: https://github.com/alsa-project/alsa-lib/pull/223
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
* http://www.medianet.ag
*/
+#include "config.h"
#include <dirent.h>
#include <locale.h>
#include <math.h>
const unsigned long ladspa_id)
{
DIR *dir;
- struct dirent * dirent;
+ struct dirent64 * dirent;
int len = strlen(path), err;
int need_slash;
char *filename;
return -ENOENT;
while (1) {
- dirent = readdir(dir);
+ dirent = readdir64(dir);
if (!dirent) {
closedir(dir);
return 0;
*
*/
+#include "config.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>