summaryrefslogtreecommitdiff
path: root/apt-pkg/clean.cc
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg/clean.cc')
-rw-r--r--apt-pkg/clean.cc4
1 files changed, 4 insertions, 0 deletions
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 /*{{{*/
// ---------------------------------------------------------------------