Used ENOENT instead of ENODATA when the latter is not defined (Robert Millan)
ENODATA is not defined by Posix and is lacking on FreeBSDedge.strict_endians
parent
e38154dde2
commit
d06ee35332
|
@ -31,6 +31,12 @@
|
|||
#include <sys/param.h>
|
||||
#endif
|
||||
|
||||
#include <errno.h> /* ENODATA */
|
||||
|
||||
#ifndef ENODATA
|
||||
#define ENODATA ENOENT
|
||||
#endif
|
||||
|
||||
#ifndef PATH_MAX
|
||||
#define PATH_MAX 4096
|
||||
#endif
|
||||
|
|
|
@ -46,6 +46,7 @@
|
|||
#include <sys/sysmacros.h>
|
||||
#endif
|
||||
|
||||
#include "compat.h"
|
||||
#include "types.h"
|
||||
#include "debug.h"
|
||||
#include "attrib.h"
|
||||
|
|
|
@ -46,6 +46,7 @@
|
|||
#include <sys/sysmacros.h>
|
||||
#endif
|
||||
|
||||
#include "compat.h"
|
||||
#include "types.h"
|
||||
#include "debug.h"
|
||||
#include "attrib.h"
|
||||
|
|
|
@ -52,6 +52,7 @@
|
|||
#include <pwd.h>
|
||||
#include <grp.h>
|
||||
|
||||
#include "compat.h"
|
||||
#include "param.h"
|
||||
#include "types.h"
|
||||
#include "layout.h"
|
||||
|
|
Loading…
Reference in New Issue