[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] libxl: add a define for equivalent ENODATA errno on FreeBSD
commit 740c1f14d31b3d2ebaaa177576fb8790633628b2 Author: Roger Pau Monne <roger.pau@xxxxxxxxxx> AuthorDate: Tue May 3 12:55:05 2016 +0200 Commit: Wei Liu <wei.liu2@xxxxxxxxxx> CommitDate: Wed May 4 16:30:32 2016 +0100 libxl: add a define for equivalent ENODATA errno on FreeBSD Currently FreeBSD lacks the ENODATA errno value, so the privcmd driver always translates ENODATA to ENOENT, add a define to libxl in order to correctly match ENODATA with ENOENT on FreeBSD. Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> Release-acked-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- tools/libxl/libxl_osdeps.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/libxl/libxl_osdeps.h b/tools/libxl/libxl_osdeps.h index 10ce703..a40d620 100644 --- a/tools/libxl/libxl_osdeps.h +++ b/tools/libxl/libxl_osdeps.h @@ -52,6 +52,13 @@ #include <libutil.h> #include <sys/endian.h> #include <uuid.h> +/* + * FreeBSD doesn't have ENODATA errno ATM, so privcmd always translates + * ENODATA into ENOENT. + */ +#ifndef ENODATA +#define ENODATA ENOENT +#endif #endif #ifndef SYSFS_USBBACK_DRIVER -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |