Skip to content

Instantly share code, notes, and snippets.

@mgdm
Created April 5, 2015 20:37
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 mgdm/27de5f8d7dd47bdcb522 to your computer and use it in GitHub Desktop.
Save mgdm/27de5f8d7dd47bdcb522 to your computer and use it in GitHub Desktop.
Fix compile on Linux
diff --git a/Zend/zend.c b/Zend/zend.c
index abaa0d2..99e560a 100644
--- a/Zend/zend.c
+++ b/Zend/zend.c
@@ -399,6 +399,7 @@ static void zend_set_default_compile_time_values(void) /* {{{ */
}
/* }}} */
+#ifdef ZEND_WIN32
static void zend_get_windows_version_info(OSVERSIONINFOEX *osvi) /* {{{ */
{
ZeroMemory(osvi, sizeof(OSVERSIONINFOEX));
@@ -408,6 +409,7 @@ static void zend_get_windows_version_info(OSVERSIONINFOEX *osvi) /* {{{ */
}
}
/* }}} */
+#endif
static void zend_init_exception_op(void) /* {{{ */
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment