Redefined ELIBBAD as ENOEXEC when missing

When a plugin cannot be initialized a ELIBBAD error is returned on Linux
and OpenIndiana. As this is not a Posix error code, use ENOEXEC on
systems which do not define ELIBBAD.
This commit is contained in:
Jean-Pierre André 2016-05-04 09:59:18 +02:00
parent 0ad352b40f
commit 040153adcb
2 changed files with 5 additions and 0 deletions

View File

@ -37,6 +37,10 @@
#define ENODATA ENOENT #define ENODATA ENOENT
#endif #endif
#ifndef ELIBBAD
#define ELIBBAD ENOEXEC
#endif
#ifndef PATH_MAX #ifndef PATH_MAX
#define PATH_MAX 4096 #define PATH_MAX 4096
#endif #endif

View File

@ -47,6 +47,7 @@
#include <getopt.h> #include <getopt.h>
#include <fuse.h> #include <fuse.h>
#include "compat.h"
#include "inode.h" #include "inode.h"
#include "dir.h" #include "dir.h"
#include "security.h" #include "security.h"