patch-src_c_property_c 815 B

12345678910111213141516171819202122
  1. $OpenBSD: patch-src_c_property_c,v 1.2 2016/01/13 22:09:32 jasper Exp $
  2. --- src/c/property.c.orig Wed Apr 17 07:48:52 2013
  3. +++ src/c/property.c Wed Jan 13 23:08:34 2016
  4. @@ -27,7 +27,7 @@
  5. * included in all copies or substantial portions of the Software.
  6. */
  7. -#if defined(MACOSX) || defined(FREEBSD)
  8. +#if defined(MACOSX) || defined(FREEBSD) || defined(OPENBSD)
  9. #else
  10. #include <malloc.h>
  11. #endif
  12. @@ -453,7 +453,7 @@ int getEncodingByName(char* encodingMB, int *encoding)
  13. int getEncodingByName(char* encodingMB, char** encoding) {
  14. #endif
  15. if (strIgnoreCaseCmp(encodingMB, "Shift_JIS") == 0) {
  16. -#if defined(FREEBSD) || defined (AIX) || defined(MACOSX)
  17. +#if defined(FREEBSD) || defined (AIX) || defined(MACOSX) || defined(OPENBSD)
  18. *encoding = "SJIS";
  19. #elif defined(WIN32)
  20. *encoding = 932;