Skip to content

Instantly share code, notes, and snippets.

diff -ruN snes9x-1.53-src.orig/macosx/mac-cart.mm snes9x-1.53-src/macosx/mac-cart.mm
--- snes9x-1.53-src.orig/macosx/mac-cart.mm 2011-04-24 22:38:10.000000000 +0900
+++ snes9x-1.53-src/macosx/mac-cart.mm 2014-12-06 15:06:35.000000000 +0900
@@ -214,7 +214,7 @@
FSRef ref;
Boolean reply;
char name[PATH_MAX + 1];
-#ifdef MAC_LEOPARD_TIGER_PANTHER_SUPPORT
+#if defined(MAC_LEOPARD_TIGER_PANTHER_SUPPORT) || defined(MAC_YOSEMITE_SUPPORT)
IBNibRef customNib;
diff --git a/src/sockssl.cc b/src/sockssl.cc
index 3683e86..340c3de 100644
--- a/src/sockssl.cc
+++ b/src/sockssl.cc
@@ -63,6 +63,11 @@ sockssl::close (int abort)
}
catch (nonlocal_jump &)
{ }
+ catch (sock_error &)
+ {
@amuramatsu
amuramatsu / mh-6.8.4-JP-3.05-utf8.patch
Last active September 14, 2016 17:00
mh-6.8.4-JP-3.05-utf8.patch
diff -u conf/MH.in.orig conf/MH.in
--- conf/MH.in.orig 2016-09-10 21:56:53.000000000 +0900
+++ conf/MH.in 2016-09-10 21:58:16.000000000 +0900
@@ -15,7 +15,7 @@
# some options
cc @CC@
cpp @CPP@
-ccoptions @CFLAGS@
+ccoptions @CFLAGS@ -DWITH_ICONV
ldoptions @LDFLAGS@
* __file__ `__file__' Location.
* __gnu__ `__gnu__' Platform macros.
* __line__ `__line__' Location.
* __os2__ `__os2__' Platform macros.
* __program__ `__program__' Location.
* __unix__ `__unix__' Platform macros.
* __windows__ `__windows__' Platform macros.
* builtin `builtin' Builtin.
* changecom `changecom' Changecom.
* changequote `changequote' Changequote.
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (c) 2016, 2017 MURAMATSU Atsushi <[email protected]>
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
#! /usr/bin/env python3
#
# Copyright (c) 2016 MURAMATSU Atsushi <[email protected]>
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2015, 2016, 2017 MURAMATSU Atsushi <[email protected]>
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
#! /bin/sh
#
# Shell script to install Bluetooth firmware and attach BT part of
# RTL8723BS
#
RFKILL_BT=`/usr/sbin/rfkill list | awk 'BEGIN{FS=":"} /OBDA8723/{ print $1 }'`
if [ x"$RFKILL_BT" != x"" ]; then
/usr/sbin/rfkill block "$RFKILL_BT"
/usr/sbin/rfkill unblock "$RFKILL_BT"
diff -ru nethack-3.6.0/include/extern.h jnethack-utf8/include/extern.h
--- nethack-3.6.0/include/extern.h 2017-01-10 00:03:17.000000000 +0900
+++ jnethack-utf8/include/extern.h 2017-01-10 00:51:11.000000000 +0900
@@ -2784,12 +2784,12 @@
E unsigned char *FDECL(e2sj, (unsigned char *));
E unsigned char *FDECL(sj2e, (unsigned char *));
E const char *FDECL(str2ic, (const char *));
-#ifdef SJIS_FILESYSTEM
E const char *FDECL(ic2str, (const char *));
-#endif
diff -ruN emacs-25.2.orig/configure.ac emacs-25.2/configure.ac
--- emacs-25.2.orig/configure.ac 2017-02-03 23:34:30.000000000 +0900
+++ emacs-25.2/configure.ac 2017-04-24 21:06:14.000000000 +0900
@@ -1915,7 +1915,7 @@
INSTALL_ARCH_INDEP_EXTRA=
fi
- NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o $ns_fontfile"
+ NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o macim.o $ns_fontfile"
fi