diff -Nurd cscope-15.7a/configure cscope-15.7a.patched/configure --- cscope-15.7a/configure 2009-04-30 13:02:58.000000000 -0700 +++ cscope-15.7a.patched/configure 2012-05-18 09:33:29.000000000 -0700 @@ -5165,23 +5165,13 @@ -if pkg-config --exists gtk+-2.0; then - USING_GNOME2_TRUE= - USING_GNOME2_FALSE='#' -else USING_GNOME2_TRUE='#' USING_GNOME2_FALSE= -fi -if test "$has_gnome" = true; then - HAS_GNOME_TRUE= - HAS_GNOME_FALSE='#' -else HAS_GNOME_TRUE='#' HAS_GNOME_FALSE= -fi diff -Nurd cscope-15.7a/src/constants.h cscope-15.7a.patched/src/constants.h --- cscope-15.7a/src/constants.h 2006-08-20 10:07:38.000000000 -0700 +++ cscope-15.7a.patched/src/constants.h 2012-05-18 09:52:29.000000000 -0700 @@ -103,7 +103,7 @@ #define INCLUDES 8 #define FIELDS 9 -#if (BSD || V9) && !__NetBSD__ && !__FreeBSD__ +#if (BSD || V9) && !__NetBSD__ && !__FreeBSD__ && !__APPLE__ # define TERMINFO 0 /* no terminfo curses */ #else # define TERMINFO 1 diff -Nurd cscope-15.7a/src/global.h cscope-15.7a.patched/src/global.h --- cscope-15.7a/src/global.h 2009-04-10 07:34:28.000000000 -0700 +++ cscope-15.7a.patched/src/global.h 2012-05-18 09:31:00.000000000 -0700 @@ -117,11 +117,11 @@ # define tolower(c) (isupper(c) ? (c) - 'A' + 'a' : (c)) # define toupper(c) (islower(c) ? (c) - 'a' + 'A' : (c)) # if !sun -# if !__FreeBSD__ +# if !__FreeBSD__ && !__APPLE__ /* in traditional BSD, *printf() doesn't return the number of bytes * written */ # define PRINTF_RETVAL_BROKEN 1 -# endif /* !FreeBSD */ +# endif /* !FreeBSD && !__APPLE__ */ # endif /* !sun */ #endif