Add build option to disable usage of scv on powerpc
[platform/upstream/glibc.git] / sysdeps / unix / sysv / linux / powerpc / sysdep.h
index 2f31f91..4b9d43c 100644 (file)
 
 /* When inside the dynamic loader, the thread pointer may not have been
    initialized yet, so don't check for scv support in that case.  */
-# if !IS_IN(rtld)
+# if defined(USE_PPC_SCV) && !IS_IN(rtld)
 #  undef TRY_SYSCALL_SCV
 #  define TRY_SYSCALL_SCV(nr)                                          \
   CHECK_THREAD_POINTER && THREAD_GET_HWCAP() & PPC_FEATURE2_SCV ?      \