Used ENOENT instead of ENODATA when the latter is not defined (Robert Millan)

ENODATA is not defined by Posix and is lacking on FreeBSD
edge.strict_endians
Jean-Pierre André 2012-01-23 16:50:25 +01:00
parent e38154dde2
commit d06ee35332
4 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -46,6 +46,7 @@
#include <sys/sysmacros.h>
#endif
#include "compat.h"
#include "types.h"
#include "debug.h"
#include "attrib.h"

View File

@ -46,6 +46,7 @@
#include <sys/sysmacros.h>
#endif
#include "compat.h"
#include "types.h"
#include "debug.h"
#include "attrib.h"

View File

@ -52,6 +52,7 @@
#include <pwd.h>
#include <grp.h>
#include "compat.h"
#include "param.h"
#include "types.h"
#include "layout.h"