Bug 1054397 - Trivial patch to SDL_config.h for ppc64le
Summary: Trivial patch to SDL_config.h for ppc64le
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: SDL
Version: rawhide
Hardware: ppc64le
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Petr Pisar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F-ExcludeArch-ppc64le, PPC64LETracker
TreeView+ depends on / blocked
 
Reported: 2014-01-16 18:19 UTC by Brent Baude
Modified: 2014-01-17 07:15 UTC (History)
1 user (show)

Fixed In Version: SDL-1.2.15-13.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1061782 (view as bug list)
Environment:
Last Closed: 2014-01-17 07:15:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Brent Baude 2014-01-16 18:19:06 UTC
Please consider the following trivial patch to the SDL_config.h to enable ppc64le properly:

diff --git a/SDL_config.h b/SDL_config.h
index 109f879..1f75138 100644
--- a/SDL_config.h
+++ b/SDL_config.h
@@ -40,7 +40,11 @@
 #elif defined(__ia64__)
 #include "SDL_config-ia64.h"
 #elif defined(__powerpc64__)
+#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
 #include "SDL_config-ppc64.h"
+#else
+#include "SDL_config-ppc64le.h"
+#endif
 #elif defined(__powerpc__)
 #include "SDL_config-ppc.h"
 #elif defined(__s390x__)


Note You need to log in before you can comment on or make changes to this bug.