Bug#807367: [PATCH] edspsystem.cc: include <stdlib.h> for mkdtemp
Package: apt
Version: 1.1.4
Severity: normal
Tags: patch
Include <stdlib.h> to ensure that mkdtemp(3) is defined to improve
general portability and fix a specific build failure on Android.
---
apt-pkg/edsp/edspsystem.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/apt-pkg/edsp/edspsystem.cc b/apt-pkg/edsp/edspsystem.cc
index 95abc15..0d96786 100644
--- a/apt-pkg/edsp/edspsystem.cc
+++ b/apt-pkg/edsp/edspsystem.cc
@@ -20,6 +20,7 @@
#include <apt-pkg/fileutl.h>
#include <stddef.h>
+#include <stdlib.h>
#include <unistd.h>
#include <string>
--
2.6.3
Reply to: