]> git.saurik.com Git - apt.git/commitdiff
apt-helper.cc: include <stdlib.h> for atoi
authorFredrik Fornwall <fredrik@fornwall.net>
Sun, 6 Dec 2015 12:30:51 +0000 (13:30 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Sun, 6 Dec 2015 12:30:51 +0000 (13:30 +0100)
Include <stdlib.h> to ensure that atoi(3) is defined to improve
general portability and fix a specific build failure on Android.

Closes: 807031
cmdline/apt-helper.cc

index c0575bea12c96c3f50eb0f085f12fd9dba24a4e6..5a29427c8859ed1ed3a7141ea7112b621cfef37b 100644 (file)
@@ -29,6 +29,8 @@
 #include <string>
 #include <vector>
 
 #include <string>
 #include <vector>
 
+#include <stdlib.h>
+
 #include <apti18n.h>
                                                                        /*}}}*/
 
 #include <apti18n.h>
                                                                        /*}}}*/