diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2005-10-06 07:28:30 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-10-06 07:28:30 +0000 |
commit | 4ee51bdf46144d4586843e490b3bb1fd23ffd585 (patch) | |
tree | a1223ace4e73f0d1d41db6f3ef638d4863a74cba | |
parent | effbe50ffd811f4c289e5cb264c7b01303f57d19 (diff) |
Added a CYGWIN define to include header files required to build in a Cygwin environment
-rw-r--r-- | config.h | 2 | ||||
-rw-r--r-- | lib/libalpm/add.c | 3 | ||||
-rw-r--r-- | lib/libalpm/conflict.c | 3 | ||||
-rw-r--r-- | lib/libalpm/remove.c | 3 | ||||
-rw-r--r-- | lib/libalpm/sync.c | 3 | ||||
-rw-r--r-- | lib/libalpm/util.c | 3 | ||||
-rw-r--r-- | src/pacman/pacman.c | 9 | ||||
-rw-r--r-- | src/pacman/sync.c | 3 | ||||
-rw-r--r-- | src/pacman/util.c | 3 |
9 files changed, 31 insertions, 1 deletions
@@ -2,4 +2,4 @@ #define HAVE_LOCALE_H 1 #define HAVE_SETLOCALE 1 #define HAVE_STRVERSCMP 1 - +#undef CYGWIN diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c index 80350d1b..af7d6b0b 100644 --- a/lib/libalpm/add.c +++ b/lib/libalpm/add.c @@ -25,6 +25,9 @@ #include <time.h> #include <fcntl.h> #include <string.h> +#ifdef CYGWIN +#include <limits.h> /* PATH_MAX */ +#endif #include <zlib.h> #include <libtar.h> /* pacman */ diff --git a/lib/libalpm/conflict.c b/lib/libalpm/conflict.c index 0d614e3f..3408c676 100644 --- a/lib/libalpm/conflict.c +++ b/lib/libalpm/conflict.c @@ -23,6 +23,9 @@ #include <stdlib.h> #include <unistd.h> #include <string.h> +#ifdef CYGWIN +#include <limits.h> /* PATH_MAX */ +#endif #include <sys/stat.h> /* pacman */ #include "util.h" diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c index a622a4f4..fd00eae1 100644 --- a/lib/libalpm/remove.c +++ b/lib/libalpm/remove.c @@ -25,6 +25,9 @@ #include <time.h> #include <fcntl.h> #include <string.h> +#ifdef CYGWIN +#include <limits.h> /* PATH_MAX */ +#endif #include <zlib.h> #include <libtar.h> /* pacman */ diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index 20d5a64b..0be24b79 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -24,6 +24,9 @@ #include <stdio.h> #include <fcntl.h> #include <string.h> +#ifdef CYGWIN +#include <limits.h> /* PATH_MAX */ +#endif #include <libtar.h> #include <zlib.h> /* pacman */ diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index a4b9e0ff..4836812e 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -30,6 +30,9 @@ #include <dirent.h> #include <time.h> #include <syslog.h> +#ifdef CYGWIN +#include <limits.h> /* PATH_MAX */ +#endif #include <zlib.h> #include <libtar.h> /* pacman */ 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 <stdlib.h> #include <stdio.h> #include <limits.h> #include <getopt.h> #include <string.h> #include <signal.h> +#ifndef CYGWIN #include <mcheck.h> /* debug */ +#else +#include <libgen.h> /* basename */ +#endif #include <alpm.h> /* 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 <sys/stat.h> #include <unistd.h> #include <dirent.h> +#ifdef CYGWIN +#include <limits.h> /* PATH_MAX */ +#endif #include <alpm.h> /* 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 <ctype.h> #include <dirent.h> #include <unistd.h> +#ifdef CYGWIN +#include <limits.h> /* PATH_MAX */ +#endif /* pacman */ #include "util.h" |