botan.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. Index: src/build-data/makefile/unix.in
  2. --- src/build-data/makefile/unix.in.orig 2011-06-03 17:00:14.000000000 +0200
  3. +++ src/build-data/makefile/unix.in 2011-06-04 11:13:54.000000000 +0200
  4. @@ -16,8 +16,8 @@
  5. BINDIR = $(DESTDIR)/bin
  6. LIBDIR = $(DESTDIR)/%{libdir}
  7. -HEADERDIR = $(DESTDIR)/%{includedir}/botan-$(SERIES)/botan
  8. -DOCDIR = $(DESTDIR)/%{docdir}/botan-$(VERSION)
  9. +HEADERDIR = $(DESTDIR)/%{includedir}/botan
  10. +DOCDIR = $(DESTDIR)/%{docdir}
  11. PKGCONF_DIR = $(LIBDIR)/pkgconfig
  12. CONFIG_SCRIPT = %{botan_config}
  13. Index: src/utils/cpuid.cpp
  14. --- src/utils/cpuid.cpp.orig 2011-06-03 17:00:14.000000000 +0200
  15. +++ src/utils/cpuid.cpp 2011-06-04 11:07:29.000000000 +0200
  16. @@ -14,7 +14,7 @@
  17. #include <sys/sysctl.h>
  18. #endif
  19. -#if defined(BOTAN_TARGET_CPU_IS_X86_FAMILY)
  20. +#if 0
  21. #if defined(BOTAN_BUILD_COMPILER_IS_MSVC)
  22. Index: src/utils/types.h
  23. --- src/utils/types.h.orig 2011-06-03 17:00:14.000000000 +0200
  24. +++ src/utils/types.h 2011-06-04 11:07:29.000000000 +0200
  25. @@ -43,7 +43,7 @@
  26. typedef unsigned __int64 u64bit;
  27. #elif defined(__KCC)
  28. typedef unsigned __long_long u64bit;
  29. -#elif defined(__GNUG__)
  30. +#elif defined(__GNUC__)
  31. __extension__ typedef unsigned long long u64bit;
  32. #else
  33. typedef unsigned long long u64bit;