Skip to content

Commit 19dfba0

Browse files
authored
Merge pull request #178 from lukasmacko/master
Fix OS X build
2 parents 572ea85 + 5f490e6 commit 19dfba0

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ branches:
2121
- devel
2222

2323
before_install:
24-
- wget https://cmocka.org/files/1.0/cmocka-1.0.1.tar.xz
25-
- tar -xJvf cmocka-1.0.1.tar.xz
26-
- cd cmocka-1.0.1 && mkdir build && cd build
27-
- cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install
24+
- git clone git://git.cryptomilk.org/projects/cmocka.git
25+
- cd cmocka && mkdir build && cd build
26+
- cmake .. && make -j2 && sudo make install
2827
- cd ../..
2928
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; brew install pcre; brew install valgrind; fi
3029
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq; sudo apt-get install -y valgrind; fi

src/tree_schema.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@
1515
#ifndef LY_TREE_SCHEMA_H_
1616
#define LY_TREE_SCHEMA_H_
1717

18-
#include <endian.h>
18+
#ifdef __APPLE__
19+
#include <machine/endian.h>
20+
#else
21+
#include <endian.h>
22+
#endif
23+
1924
#include <stddef.h>
2025
#include <stdint.h>
2126
#include <stdio.h>

0 commit comments

Comments
 (0)