mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-01 01:41:52 -05:00
Added a CYGWIN define to include header files required to build in a Cygwin environment
This commit is contained in:
parent
effbe50ffd
commit
4ee51bdf46
2
config.h
2
config.h
@ -2,4 +2,4 @@
|
||||
#define HAVE_LOCALE_H 1
|
||||
#define HAVE_SETLOCALE 1
|
||||
#define HAVE_STRVERSCMP 1
|
||||
|
||||
#undef CYGWIN
|
||||
|
@ -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 */
|
||||
|
@ -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"
|
||||
|
@ -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 */
|
||||
|
@ -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 */
|
||||
|
@ -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 */
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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 */
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user