--- pcregrep.c~ 2012-05-29 20:16:34.473486836 +0800 +++ pcregrep.c 2012-05-29 20:16:47.360153561 +0800 @@ -1584,7 +1584,7 @@ BZFILE *inbz2 = NULL; #endif -#if defined SUPPORT_LIBZ || defined SUPPORT_LIBZ2 +#if defined SUPPORT_LIBZ || defined SUPPORT_LIBBZ2 int pathlen; #endif @@ -1667,7 +1667,7 @@ argument at top level, we don't show the file name, unless we are only showing the file name, or the filename was forced (-H). */ -#if defined SUPPORT_LIBZ || defined SUPPORT_LIBZ2 +#if defined SUPPORT_LIBZ || defined SUPPORT_LIBBZ2 pathlen = (int)(strlen(pathname)); #endif