mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04: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_LOCALE_H 1
|
||||||
#define HAVE_SETLOCALE 1
|
#define HAVE_SETLOCALE 1
|
||||||
#define HAVE_STRVERSCMP 1
|
#define HAVE_STRVERSCMP 1
|
||||||
|
#undef CYGWIN
|
||||||
|
@ -25,6 +25,9 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#ifdef CYGWIN
|
||||||
|
#include <limits.h> /* PATH_MAX */
|
||||||
|
#endif
|
||||||
#include <zlib.h>
|
#include <zlib.h>
|
||||||
#include <libtar.h>
|
#include <libtar.h>
|
||||||
/* pacman */
|
/* pacman */
|
||||||
|
@ -23,6 +23,9 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#ifdef CYGWIN
|
||||||
|
#include <limits.h> /* PATH_MAX */
|
||||||
|
#endif
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
/* pacman */
|
/* pacman */
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
@ -25,6 +25,9 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#ifdef CYGWIN
|
||||||
|
#include <limits.h> /* PATH_MAX */
|
||||||
|
#endif
|
||||||
#include <zlib.h>
|
#include <zlib.h>
|
||||||
#include <libtar.h>
|
#include <libtar.h>
|
||||||
/* pacman */
|
/* pacman */
|
||||||
|
@ -24,6 +24,9 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#ifdef CYGWIN
|
||||||
|
#include <limits.h> /* PATH_MAX */
|
||||||
|
#endif
|
||||||
#include <libtar.h>
|
#include <libtar.h>
|
||||||
#include <zlib.h>
|
#include <zlib.h>
|
||||||
/* pacman */
|
/* pacman */
|
||||||
|
@ -30,6 +30,9 @@
|
|||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
|
#ifdef CYGWIN
|
||||||
|
#include <limits.h> /* PATH_MAX */
|
||||||
|
#endif
|
||||||
#include <zlib.h>
|
#include <zlib.h>
|
||||||
#include <libtar.h>
|
#include <libtar.h>
|
||||||
/* pacman */
|
/* pacman */
|
||||||
|
@ -19,13 +19,18 @@
|
|||||||
* USA.
|
* USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
#ifndef CYGWIN
|
||||||
#include <mcheck.h> /* debug */
|
#include <mcheck.h> /* debug */
|
||||||
|
#else
|
||||||
|
#include <libgen.h> /* basename */
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <alpm.h>
|
#include <alpm.h>
|
||||||
/* pacman */
|
/* pacman */
|
||||||
@ -92,8 +97,10 @@ int main(int argc, char *argv[])
|
|||||||
int ret = 0;
|
int ret = 0;
|
||||||
char *cenv = NULL;
|
char *cenv = NULL;
|
||||||
|
|
||||||
|
#ifndef CYGWIN
|
||||||
/* debug */
|
/* debug */
|
||||||
mtrace();
|
mtrace();
|
||||||
|
#endif
|
||||||
|
|
||||||
cenv = getenv("COLUMNS");
|
cenv = getenv("COLUMNS");
|
||||||
if(cenv != NULL) {
|
if(cenv != NULL) {
|
||||||
@ -226,8 +233,10 @@ void cleanup(int signum)
|
|||||||
|
|
||||||
FREELIST(pm_targets);
|
FREELIST(pm_targets);
|
||||||
|
|
||||||
|
#ifndef CYGWIN
|
||||||
/* debug */
|
/* debug */
|
||||||
muntrace();
|
muntrace();
|
||||||
|
#endif
|
||||||
|
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
|
@ -26,6 +26,9 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
|
#ifdef CYGWIN
|
||||||
|
#include <limits.h> /* PATH_MAX */
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <alpm.h>
|
#include <alpm.h>
|
||||||
/* pacman */
|
/* pacman */
|
||||||
|
@ -29,6 +29,9 @@
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#ifdef CYGWIN
|
||||||
|
#include <limits.h> /* PATH_MAX */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* pacman */
|
/* pacman */
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user