summaryrefslogtreecommitdiffstats
path: root/src/mapi
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-03-16 15:28:47 +1100
committerTimothy Arceri <[email protected]>2017-03-16 15:33:08 +1100
commit4a32d473fd6c10451fca813e462abfbe6c876048 (patch)
treebcb0ddf89b8ec61da3df1aef1f6f905eef31b9b3 /src/mapi
parent643b0fd7e9269280b7ae0fc5c0e75c32597aa120 (diff)
mesa: fix glthread marshal build issues on platforms without PTHREAD
Diffstat (limited to 'src/mapi')
-rw-r--r--src/mapi/glapi/gen/gl_marshal.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/gl_marshal.py b/src/mapi/glapi/gen/gl_marshal.py
index d73f08b6684..576d42c1263 100644
--- a/src/mapi/glapi/gen/gl_marshal.py
+++ b/src/mapi/glapi/gen/gl_marshal.py
@@ -68,6 +68,8 @@ class PrintCode(gl_XML.gl_print_base):
print header
print '#include <X11/Xlib-xcb.h>'
print
+ print '#ifdef HAVE_PTHREAD'
+ print
print 'static _X_INLINE int safe_mul(int a, int b)'
print '{'
print ' if (a < 0 || b < 0) return -1;'
@@ -78,7 +80,8 @@ class PrintCode(gl_XML.gl_print_base):
print
def printRealFooter(self):
- pass
+ print
+ print '#endif'
def print_sync_call(self, func):
call = 'CALL_{0}(ctx->CurrentServerDispatch, ({1}))'.format(