[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#807031: [PATCH] Make apt-helper.cc include <stdlib.h> for atoi



Package: apt
Version: 1.1.3
Severity: normal
Tags: patch

Include <stdlib.h> to ensure that atoi(3) is defined to improve
general portability and fix a specific build failure on Android.
---
 cmdline/apt-helper.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cmdline/apt-helper.cc b/cmdline/apt-helper.cc
index c0575be..254bcf9 100644
--- a/cmdline/apt-helper.cc
+++ b/cmdline/apt-helper.cc
@@ -25,6 +25,7 @@
 #include <apt-private/private-main.h>
 #include <apt-pkg/srvrec.h>
 
+#include <stdlib.h>
 #include <iostream>
 #include <string>
 #include <vector>
-- 
2.6.3


Reply to: