summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2018-12-05 21:44:09 -0600
committerWilliam Wilgus <me.theuser@yahoo.com>2018-12-07 21:04:30 +0100
commit94506894837242877c147bd755111cfd8f993ea7 (patch)
tree05ec7b879d7ddc63e0fdd6c933d7b67a7de62afd /firmware
parent4e8ef17a8b756c8894ec4d8b2481794f7f69c361 (diff)
downloadrockbox-94506894837242877c147bd755111cfd8f993ea7.tar.gz
rockbox-94506894837242877c147bd755111cfd8f993ea7.tar.bz2
rockbox-94506894837242877c147bd755111cfd8f993ea7.zip
Fix Sim for newer distros
__builtin found fix for rbendian.h tools/configure defines SIM_USE_BYTESWAP_H if byteswap.h is found in /usr/include/ maybe there is a better mechanism for this genshortcut.sh is a simple script to make .desktop shortcut files several newer distros don't allow you to run the simulator from the file manager, this or perhaps a different method can probably be included while building a sim at a later date. for now it can be run manually like so: similar to ../tools/configure run from your simulator folder ../tools/genshortcut.sh exepath shortname icon ex. ../tools/genshortcut.sh ./rockboxui clip+sim music-app Change-Id: Ia05d3a9349b27c5968a4a7a68b2eb480e60faec3
Diffstat (limited to 'firmware')
-rw-r--r--firmware/include/rbendian.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/include/rbendian.h b/firmware/include/rbendian.h
index dbb6d4e822..0e941b8f06 100644
--- a/firmware/include/rbendian.h
+++ b/firmware/include/rbendian.h
@@ -23,6 +23,10 @@
#include "config.h"
+#ifdef SIM_USE_BYTESWAP_H
+#include <byteswap.h>
+#endif
+
#ifndef __MINGW32__
#include <endian.h>
#endif