Commit 2fbac3f2 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Cope with systems having both <sys/endian.h> and <endian.h>

Fixes:	1476
parent 28a9e894
......@@ -28,18 +28,17 @@
#include "config.h"
#ifdef HAVE_SYS_ENDIAN_H
#include <sys/types.h>
#include <sys/endian.h>
#define VBYTE_ORDER _BYTE_ORDER
#define VBIG_ENDIAN _BIG_ENDIAN
#if defined(HAVE_SYS_ENDIAN_H)
# include <sys/types.h>
# include <sys/endian.h>
# define VBYTE_ORDER _BYTE_ORDER
# define VBIG_ENDIAN _BIG_ENDIAN
#elif defined(HAVE_ENDIAN_H)
# include <endian.h>
# define VBYTE_ORDER __BYTE_ORDER
# define VBIG_ENDIAN __BIG_ENDIAN
#endif
#ifdef HAVE_ENDIAN_H
#include <endian.h>
#define VBYTE_ORDER __BYTE_ORDER
#define VBIG_ENDIAN __BIG_ENDIAN
#endif
#include <errno.h>
#include <stdint.h>
#include <string.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment