[syslinux] [PATCH] Replace lendian_{short, int} with the appropriate functions from endian.h
H. Peter Anvin
hpa at zytor.com
Tue Mar 1 13:32:06 PST 2011
On 03/01/2011 04:41 AM, Justus Winter wrote:
> ---
> utils/isohybrid.c | 52 ++++++++++++----------------------------------------
> 1 files changed, 12 insertions(+), 40 deletions(-)
>
> diff --git a/utils/isohybrid.c b/utils/isohybrid.c
> index 7ee9a7f..34ec8a6 100644
> --- a/utils/isohybrid.c
> +++ b/utils/isohybrid.c
> @@ -36,6 +36,7 @@
> #include <unistd.h>
> #include <sys/stat.h>
> #include <inttypes.h>
> +#include <endian.h>
>
No way, there is no reason for this code not to be portable to non-Linux
POSIX platforms.
-hpa
More information about the Syslinux
mailing list