Added a CYGWIN define to include header files required to build in a Cygwin environment

This commit is contained in:
Aurelien Foret 2005-10-06 07:28:30 +00:00
parent effbe50ffd
commit 4ee51bdf46
9 changed files with 31 additions and 1 deletions

View File

@ -2,4 +2,4 @@
#define HAVE_LOCALE_H 1
#define HAVE_SETLOCALE 1
#define HAVE_STRVERSCMP 1
#undef CYGWIN

View File

@ -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 */

View File

@ -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"

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */

View File

@ -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);

View File

@ -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 */

View File

@ -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"