Skip to content

Commit 6b69e4b

Browse files
committed
lyb BUGFIX missing header file on mac osx
1 parent 3ea19b3 commit 6b69e4b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/parser_lyb.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717
#include <stdlib.h>
1818
#include <string.h>
1919
#include <inttypes.h>
20-
#include <endian.h>
20+
#ifdef __APPLE__
21+
# include <machine/endian.h>
22+
#else
23+
# include <endian.h>
24+
#endif
2125

2226
#include "libyang.h"
2327
#include "common.h"

src/printer_lyb.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818
#include <string.h>
1919
#include <assert.h>
2020
#include <stdint.h>
21-
#include <endian.h>
21+
#ifdef __APPLE__
22+
# include <machine/endian.h>
23+
#else
24+
# include <endian.h>
25+
#endif
2226

2327
#include "common.h"
2428
#include "printer.h"

0 commit comments

Comments
 (0)