summaryrefslogtreecommitdiff
path: root/lib/libalpm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/add.c3
-rw-r--r--lib/libalpm/conflict.c3
-rw-r--r--lib/libalpm/remove.c3
-rw-r--r--lib/libalpm/sync.c3
-rw-r--r--lib/libalpm/util.c3
5 files changed, 15 insertions, 0 deletions
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 */