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 +++++++++ src/pacman/sync.c | 3 +++ src/pacman/util.c | 3 +++ 3 files changed, 15 insertions(+) (limited to 'src') 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); diff --git a/src/pacman/sync.c b/src/pacman/sync.c index fb00c78d..17b9b3a2 100644 --- a/src/pacman/sync.c +++ b/src/pacman/sync.c @@ -26,6 +26,9 @@ #include #include #include +#ifdef CYGWIN +#include /* PATH_MAX */ +#endif #include /* pacman */ diff --git a/src/pacman/util.c b/src/pacman/util.c index cbfaa3e5..1d3844a3 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -29,6 +29,9 @@ #include #include #include +#ifdef CYGWIN +#include /* PATH_MAX */ +#endif /* pacman */ #include "util.h" -- cgit v1.2.3