From 4ee51bdf46144d4586843e490b3bb1fd23ffd585 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Thu, 6 Oct 2005 07:28:30 +0000 Subject: Added a CYGWIN define to include header files required to build in a Cygwin environment --- src/pacman/pacman.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/pacman/pacman.c') diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 39de1f0e..89033813 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -19,13 +19,18 @@ * USA. */ +#include "config.h" #include #include #include #include #include #include +#ifndef CYGWIN #include /* debug */ +#else +#include /* basename */ +#endif #include /* pacman */ @@ -92,8 +97,10 @@ int main(int argc, char *argv[]) int ret = 0; char *cenv = NULL; +#ifndef CYGWIN /* debug */ mtrace(); +#endif cenv = getenv("COLUMNS"); if(cenv != NULL) { @@ -226,8 +233,10 @@ void cleanup(int signum) FREELIST(pm_targets); +#ifndef CYGWIN /* debug */ muntrace(); +#endif fflush(stdout); -- cgit v1.2.3