Skip to content

Instantly share code, notes, and snippets.

@apetresc
Created September 18, 2013 19:10
Show Gist options
  • Select an option

  • Save apetresc/6614037 to your computer and use it in GitHub Desktop.

Select an option

Save apetresc/6614037 to your computer and use it in GitHub Desktop.
Patch for Homebrew's vim to build on OSX 10.9
diff -r a643d80b6507 -r 75f44cf36d49 src/os_unix.c
--- a/src/os_unix.c Sat Aug 10 15:00:24 2013 +0200
+++ b/src/os_unix.c Sun Aug 11 23:09:30 2013 -0400
@@ -827,7 +827,7 @@
|| MAC_OS_X_VERSION_MAX_ALLOWED <= 1040)
/* missing prototype. Adding it to osdef?.h.in doesn't work, because
* "struct sigaltstack" needs to be declared. */
- extern int sigaltstack __ARGS((const struct sigaltstack *ss, struct sigaltstack *oss));
+ extern int sigaltstack __ARGS((const stack_t *restrict ss, stack_t *restrict oss));
# endif
# ifdef HAVE_SS_BASE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment