summaryrefslogtreecommitdiffstats
path: root/src/mapi/entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapi/entry.c')
-rw-r--r--src/mapi/entry.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mapi/entry.c b/src/mapi/entry.c
index 167386d8a9a..1e250122c4a 100644
--- a/src/mapi/entry.c
+++ b/src/mapi/entry.c
@@ -25,8 +25,12 @@
* Chia-I Wu <[email protected]>
*/
+#include <stdlib.h>
+#include <stdint.h>
+
#include "entry.h"
#include "u_current.h"
+#include "util/u_endian.h"
#define _U_STRINGIFY(x) #x
#define U_STRINGIFY(x) _U_STRINGIFY(x)
@@ -49,10 +53,14 @@
# endif
#elif defined(USE_X86_64_ASM) && defined(__GNUC__) && defined(GLX_USE_TLS)
# include "entry_x86-64_tls.h"
+#elif defined(USE_PPC64LE_ASM) && defined(__GNUC__) && defined(PIPE_ARCH_LITTLE_ENDIAN)
+# ifdef GLX_USE_TLS
+# include "entry_ppc64le_tls.h"
+# else
+# include "entry_ppc64le_tsd.h"
+# endif
#else
-#include <stdlib.h>
-
static inline const struct _glapi_table *
entry_current_get(void)
{