summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apt-pkg/acquire.cc4
-rw-r--r--apt-pkg/clean.cc4
-rw-r--r--apt-pkg/contrib/cdromutl.cc4
3 files changed, 12 insertions, 0 deletions
diff --git a/apt-pkg/acquire.cc b/apt-pkg/acquire.cc
index dd7dedb03..5b684d810 100644
--- a/apt-pkg/acquire.cc
+++ b/apt-pkg/acquire.cc
@@ -47,6 +47,10 @@
#include <unistd.h>
#include <apti18n.h>
+
+#ifndef O_DIRECTORY
+#define O_DIRECTORY 0
+#endif
/*}}}*/
using namespace std;
diff --git a/apt-pkg/clean.cc b/apt-pkg/clean.cc
index 9dd56e609..3f0ddf52b 100644
--- a/apt-pkg/clean.cc
+++ b/apt-pkg/clean.cc
@@ -26,6 +26,10 @@
#include <unistd.h>
#include <apti18n.h>
+
+#ifndef O_DIRECTORY
+#define O_DIRECTORY 0
+#endif
/*}}}*/
// ArchiveCleaner::Go - Perform smart cleanup of the archive /*{{{*/
// ---------------------------------------------------------------------
diff --git a/apt-pkg/contrib/cdromutl.cc b/apt-pkg/contrib/cdromutl.cc
index 9db3980da..4da130ccd 100644
--- a/apt-pkg/contrib/cdromutl.cc
+++ b/apt-pkg/contrib/cdromutl.cc
@@ -31,6 +31,10 @@
#include <unistd.h>
#include <apti18n.h>
+
+#ifndef O_DIRECTORY
+#define O_DIRECTORY 0
+#endif
/*}}}*/
using std::string;