Commit fa56478fb8d5e19d64bf43b51372ab3315cb1884

Chris Young 2012-06-08T19:15:11

Generic needs compat files

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d3ab19c..7d3df28 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -115,7 +115,7 @@ FILE(GLOB SRC_H include/git2/*.h)
 IF (WIN32 AND NOT CYGWIN)
 	ADD_DEFINITIONS(-DWIN32 -D_DEBUG -D_WIN32_WINNT=0x0501)
 	FILE(GLOB SRC src/*.c src/transports/*.c src/xdiff/*.c src/win32/*.c src/compat/*.c)
-ELSEIF (CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)")
+ELSEIF (CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS|Generic)")
 	FILE(GLOB SRC src/*.c src/transports/*.c src/xdiff/*.c src/unix/*.c src/compat/*.c)
 ELSE()
 	FILE(GLOB SRC src/*.c src/transports/*.c src/xdiff/*.c src/unix/*.c)
diff --git a/include/git2/common.h b/include/git2/common.h
index b692c67..045ba85 100644
--- a/include/git2/common.h
+++ b/include/git2/common.h
@@ -107,7 +107,7 @@ GIT_EXTERN(int) git_strarray_copy(git_strarray *tgt, const git_strarray *src);
  */
 GIT_EXTERN(void) git_libgit2_version(int *major, int *minor, int *rev);
 
-GIT_EXTERN(int) p_fnmatch(const char *pattern, const char *string, int flags);
+/* GIT_EXTERN(int) p_fnmatch(const char *pattern, const char *string, int flags); */
 
 /** @} */
 GIT_END_DECL