Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1054397

Summary: Trivial patch to SDL_config.h for ppc64le
Product: [Fedora] Fedora Reporter: Brent Baude <bbaude>
Component: SDLAssignee: Petr Pisar <ppisar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: ppisar
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: SDL-1.2.15-13.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1061782 (view as bug list) Environment:
Last Closed: 2014-01-17 07:15:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1051573    

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__)