Commit 4b020d3a authored by inaam's avatar inaam

branches/zip

This is a fix for issue#178. Instead of using UNIV_LINUX which is
defined through CFLAGS we use compiler generated define __linux__
that is effective for both .c and .cc files.
parent 65c50b9b
...@@ -116,7 +116,7 @@ of the 32-bit x86 assembler in mutex operations. */ ...@@ -116,7 +116,7 @@ of the 32-bit x86 assembler in mutex operations. */
/* For InnoDB rw_locks to work with atomics we need the thread_id /* For InnoDB rw_locks to work with atomics we need the thread_id
to be no more than machine word wide. The following enables using to be no more than machine word wide. The following enables using
atomics for InnoDB rw_locks where these conditions are met. */ atomics for InnoDB rw_locks where these conditions are met. */
# if defined(HAVE_GCC_ATOMIC_BUILTINS) && defined(UNIV_LINUX) # if defined(HAVE_GCC_ATOMIC_BUILTINS) && defined(__linux__)
# define INNODB_RW_LOCKS_USE_ATOMICS # define INNODB_RW_LOCKS_USE_ATOMICS
# endif # endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment