Skip to content

Instantly share code, notes, and snippets.

@eldesh
Created March 3, 2014 01:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eldesh/9317060 to your computer and use it in GitHub Desktop.
Save eldesh/9317060 to your computer and use it in GitHub Desktop.
SML/NJ110.76 を cygwin1.7.28-2 でビルドするために書いた怪しげなヘッダ(cygwin-fault.h)とパッチ
/* base/runtime/mach-dep/cygwin-fault.c */
$ diff base/runtime/mach-dep/cygwin-fault.c base/runtime/mach-dep/cygwin-fault.new.c
20,21c20
< #include <windows.h>
< #include <exceptions.h> /* Cygwin stuff */
---
> #include "cygwin-fault.h" /* Cygwin stuff */
#if !defined CYGWIN_FAULT_INCLUDED
#define CYGWIN_FAULT_INCLUDED
#include <windows.h>
typedef int (exn_handler_fn)(EXCEPTION_RECORD *, void *, CONTEXT *, void *);
typedef struct exception_list {
struct exception_list * prev;
exn_handler_fn * handler;
} exception_list;
#endif /* CYGWIN_FAULT_INCLUDED */
@crd477
Copy link

crd477 commented Apr 27, 2014

Worked great! Thank you!

@eldesh
Copy link
Author

eldesh commented Sep 29, 2014

This issue was fixed on SML/NJ 110.77 as bug id #125.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment