  SUBDIRS += ld80
  endif
  
+diff -x '.*.sw?' -Naur openlibm-ef29d06db1b57c415cbee51b90b492ae89812b5d.orig/src/fpmath.h openlibm-ef29d06db1b57c415cbee51b90b492ae89812b5d/src/fpmath.h
+--- openlibm-ef29d06db1b57c415cbee51b90b492ae89812b5d.orig/src/fpmath.h	2015-03-17 18:53:13.722324521 +0300
++++ openlibm-ef29d06db1b57c415cbee51b90b492ae89812b5d/src/fpmath.h	2015-03-17 18:55:34.392998881 +0300
+@@ -79,6 +79,14 @@
+ #define PDP_ENDIAN     _PDP_ENDIAN
+ #define BYTE_ORDER     _BYTE_ORDER
+ 
++#elif defined(__EMBOX__)
++
++#include <endian.h>
++#define _LITTLE_ENDIAN  __LITTLE_ENDIAN
++#define _BIG_ENDIAN     __BIG_ENDIAN
++#define _PDP_ENDIAN     __PDP_ENDIAN
++#define _BYTE_ORDER     __BYTE_ORDER
++
+ #endif
+ 
+ #ifndef _IEEE_WORD_ORDER
 diff -x '.*.sw?' -Naur openlibm-ef29d06db1b57c415cbee51b90b492ae89812b5d.orig/src/Make.files openlibm-ef29d06db1b57c415cbee51b90b492ae89812b5d/src/Make.files
---- openlibm-ef29d06db1b57c415cbee51b90b492ae89812b5d.orig/src/Make.files	2015-03-12 15:54:27.682867270 +0300
-+++ openlibm-ef29d06db1b57c415cbee51b90b492ae89812b5d/src/Make.files	2015-03-12 15:52:18.297518892 +0300
+--- openlibm-ef29d06db1b57c415cbee51b90b492ae89812b5d.orig/src/Make.files	2015-03-17 18:53:13.718991110 +0300
++++ openlibm-ef29d06db1b57c415cbee51b90b492ae89812b5d/src/Make.files	2015-03-17 18:46:04.197049339 +0300
 @@ -35,7 +35,7 @@
  $(CUR_SRCS) += s_nan.c
  endif

 #endif /* OPENLIBM_USE_HOST_FENV_H */
diff -x '.*.sw?' -Naur openlibm-ef29d06db1b57c415cbee51b90b492ae89812b5d.orig/include/openlibm_fenv_stubs.h openlibm-ef29d06db1b57c415cbee51b90b492ae89812b5d/include/openlibm_fenv_stubs.h
--- openlibm-ef29d06db1b57c415cbee51b90b492ae89812b5d.orig/include/openlibm_fenv_stubs.h	1970-01-01 03:00:00.000000000 +0300
+++ openlibm-ef29d06db1b57c415cbee51b90b492ae89812b5d/include/openlibm_fenv_stubs.h	2015-03-12 15:56:23.388008789 +0300
@@ -0,0 +1,161 @@
+/*-
+ * Copyright (c) 2004-2005 David Schultz <das@FreeBSD.ORG>

 #endif
 
diff -x '.*.sw?' -Naur openlibm-ef29d06db1b57c415cbee51b90b492ae89812b5d.orig/Makefile openlibm-ef29d06db1b57c415cbee51b90b492ae89812b5d/Makefile
--- openlibm-ef29d06db1b57c415cbee51b90b492ae89812b5d.orig/Makefile	2015-03-17 18:53:13.715657698 +0300
+++ openlibm-ef29d06db1b57c415cbee51b90b492ae89812b5d/Makefile	2015-03-17 18:46:04.197049339 +0300
@@ -2,7 +2,7 @@
 include ./Make.inc
 
