Skip to content

Instantly share code, notes, and snippets.

@kou1okada
Created October 29, 2013 05:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save kou1okada/7209539 to your computer and use it in GitHub Desktop.
Save kou1okada/7209539 to your computer and use it in GitHub Desktop.
Patch for compiling ruby-2.0.0-p247 on cygwin64
diff -cr ruby-2.0.0-p247.orig/file.c ruby-2.0.0-p247/file.c
*** ruby-2.0.0-p247.orig/file.c 2013-04-25 00:43:05.000000000 +0900
--- ruby-2.0.0-p247/file.c 2013-10-29 14:21:53.112722600 +0900
***************
*** 4181,4187 ****
#ifdef __CYGWIN__
#include <winerror.h>
- extern unsigned long __attribute__((stdcall)) GetLastError(void);
#endif
static VALUE
--- 4181,4186 ----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment