From 55b8aff20d0848dabad35c2e27b0cc05cf2b2f21 Mon Sep 17 00:00:00 2001 From: Shubham Gupta Date: Fri, 4 Apr 2025 04:19:39 -0500 Subject: [PATCH] pip install fails on AIX Closes #160 --- src/c/call_python.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c/call_python.c b/src/c/call_python.c index d3d2e178..96ca3bed 100644 --- a/src/c/call_python.c +++ b/src/c/call_python.c @@ -199,7 +199,7 @@ static int _update_cache_to_call_python(struct _cffi_externpy_s *externpy) !defined(__i386__) && !defined(__i386)) # if defined(HAVE_SYNC_SYNCHRONIZE) # define read_barrier() __sync_synchronize() -# elif defined(_AIX) +# elif defined(_AIX) && (defined(__xlc__) || defined(__xlC__)) # define read_barrier() __lwsync() # elif defined(__SUNPRO_C) || defined(__SUNPRO_CC) # include