[rtems-tools commit] _elftc.h: Make compile on Cygwin

Joel Sherrill joel at rtems.org
Mon Apr 30 23:13:01 UTC 2018


Module:    rtems-tools
Branch:    master
Commit:    feafa6fdf33006154d283265a86daee26cf46443
Changeset: http://git.rtems.org/rtems-tools/commit/?id=feafa6fdf33006154d283265a86daee26cf46443

Author:    Joel Sherrill <joel at rtems.org>
Date:      Mon Apr 30 18:08:12 2018 -0500

_elftc.h: Make compile on Cygwin

---

 rtemstoolkit/elftoolchain/common/_elftc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rtemstoolkit/elftoolchain/common/_elftc.h b/rtemstoolkit/elftoolchain/common/_elftc.h
index ed4fdbc..b7b5205 100644
--- a/rtemstoolkit/elftoolchain/common/_elftc.h
+++ b/rtemstoolkit/elftoolchain/common/_elftc.h
@@ -492,7 +492,7 @@ extern const char *__progname;
 #if defined(__WIN32__) || defined(__CYGWIN__)
 
 #if defined(__CYGWIN__)
-#include <sys/endian.h>
+#include <endian.h>
 #else /* __CYGWIN */
 #include <winsock2.h>
 #define htobe32(x)      (x)




More information about the vc mailing list