Fix build on Darwin. Patch by Rich Coe (rcoe@wi.rr.com).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12917
This commit is contained in:
Florian Krohm 2012-08-30 15:12:59 +00:00
parent ecfd85ebe2
commit 20c2f83060
2 changed files with 13 additions and 1 deletions

View File

@ -3,7 +3,13 @@
#include <stdio.h> // fprintf
#include <stdlib.h> // exit
#include <assert.h> // assert
#if defined(__APPLE__)
#include <machine/endian.h>
#define __BYTE_ORDER BYTE_ORDER
#define __LITTLE_ENDIAN LITTLE_ENDIAN
#else
#include <endian.h>
#endif
#include <inttypes.h>
#include "vtest.h"

View File

@ -2,7 +2,13 @@
#include <stdio.h> // fprintf
#include <assert.h> // assert
#include <endian.h> // __BYTE_ORDER
#if defined(__APPLE__)
#include <machine/endian.h>
#define __BYTE_ORDER BYTE_ORDER
#define __LITTLE_ENDIAN LITTLE_ENDIAN
#else
#include <endian.h>
#endif
#include <inttypes.h>
#include "vbits.h"
#include "vtest.h"