File ppc-cpuid.patch of Package bulk_extractor

Index: bulk_extractor-1.2.0/configure.ac
===================================================================
--- bulk_extractor-1.2.0.orig/configure.ac
+++ bulk_extractor-1.2.0/configure.ac
@@ -407,7 +407,7 @@ AC_LANG_POP()
 ################################################################
 #
 # Do we have the CPUID instruction?
-AC_TRY_COMPILE([#define cpuid(id) __asm__( "cpuid" : "=a"(eax), "=b"(ebx), "=c"(ecx), "=d"(edx) : "a"(id), "b"(0), "c"(0), "d"(0))],
+AC_TRY_COMPILE([#define cpuid(id) __asm__ volatile ( "cpuid" : "=a"(eax), "=b"(ebx), "=c"(ecx), "=d"(edx) : "a"(id), "b"(0), "c"(0), "d"(0))],
 			[unsigned long eax, ebx, ecx, edx;cpuid(0);],
 			have_cpuid=yes,
 			have_cpuid=no)
Index: bulk_extractor-1.2.0/configure
===================================================================
--- bulk_extractor-1.2.0.orig/configure
+++ bulk_extractor-1.2.0/configure
@@ -7799,7 +7799,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 # Do we have the CPUID instruction?
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
-#define cpuid(id) __asm__( "cpuid" : "=a"(eax), "=b"(ebx), "=c"(ecx), "=d"(edx) : "a"(id), "b"(0), "c"(0), "d"(0))
+#define cpuid(id) __asm__ volatile ( "cpuid" : "=a"(eax), "=b"(ebx), "=c"(ecx), "=d"(edx) : "a"(id), "b"(0), "c"(0), "d"(0))
 int
 main ()
 {
openSUSE Build Service is sponsored by