ghostscript.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. Index: base/stdint_.h
  2. --- base/stdint_.h.orig 2016-09-26 12:41:28.000000000 +0200
  3. +++ base/stdint_.h 2016-09-27 00:14:15.159444567 +0200
  4. @@ -70,6 +70,13 @@
  5. typedef unsigned long long uint64_t;
  6. # define STDINT_TYPES_DEFINED
  7. # endif
  8. +#ifdef __sun__
  9. +# include <sys/int_types.h>
  10. +# define STDINT_TYPES_DEFINED
  11. +#endif
  12. +#ifdef __FreeBSD__
  13. +# define STDINT_TYPES_DEFINED
  14. +#endif
  15. /* other archs may want to add defines here,
  16. or use the fallbacks in std.h */
  17. #endif
  18. Index: configure
  19. --- configure.orig 2016-09-26 12:41:58.000000000 +0200
  20. +++ configure 2016-09-27 18:18:20.839969603 +0200
  21. @@ -3997,10 +3997,9 @@
  22. if test $ac_cv_c_compiler_gnu = yes; then
  23. - cflags_to_try="-Wall -Wstrict-prototypes -Wundef \
  24. --Wmissing-declarations -Wmissing-prototypes -Wwrite-strings \
  25. --Wno-strict-aliasing -Werror=declaration-after-statement \
  26. --fno-builtin -fno-common -Werror=return-type"
  27. + cflags_to_try=" \
  28. +-Wno-strict-aliasing \
  29. +-fno-builtin -fno-common"
  30. optflags_to_try="$CC_OPT_FLAGS_TO_TRY"
  31. dbgflags_to_try="$CC_DBG_FLAGS_TO_TRY"
  32. else
  33. Index: xps/xps.mak
  34. --- xps/xps.mak.orig 2016-09-26 12:41:29.000000000 +0200
  35. +++ xps/xps.mak 2016-09-27 18:17:03.890169140 +0200
  36. @@ -57,8 +57,8 @@
  37. $(XPSOBJ)xpsjpeg.$(OBJ): $(XPSSRC)xpsjpeg.c $(XPSINCLUDES) $(XPS_MAK) $(MAKEDIRS)
  38. $(XPSCCC) $(XPSSRC)xpsjpeg.c $(XPSO_)xpsjpeg.$(OBJ)
  39. -$(XPSOBJ)xpspng.$(OBJ): $(XPSSRC)xpspng.c $(XPSINCLUDES) $(PNGSRCDIR)$(D)png.h \
  40. - $(PNGGENDIR)$(D)libpng.dev $(XPS_MAK) $(MAKEDIRS)
  41. +$(XPSOBJ)xpspng.$(OBJ): $(XPSSRC)xpspng.c $(XPSINCLUDES) \
  42. + $(XPS_MAK) $(MAKEDIRS)
  43. $(XPSCCC) $(I_)$(PNGSRCDIR)$(_I) $(XPSSRC)xpspng.c $(XPSO_)xpspng.$(OBJ)
  44. $(XPSOBJ)xpstiff.$(OBJ): $(XPSSRC)xpstiff.c $(XPSINCLUDES) $(XPS_MAK) $(MAKEDIRS)