Several modules use std::array without including the
array header. Bad modules.
Some modules use STDOUT_FILENO and friends, or close()
without including unistd.h, where they are defined.
One module also uses WIFEXITED() without including
sys/wait.h.
Finally, environ is not specified to be defined in unistd.h. We
are required to define it ourselves according to POSIX, so let's
do that.
#include <apt-pkg/fileutl.h>
#include <apt-pkg/error.h>
#include <apt-pkg/fileutl.h>
#include <apt-pkg/error.h>
#include <algorithm>
#include <iomanip>
#include <locale>
#include <algorithm>
#include <iomanip>
#include <locale>
#include <sstream>
#include <sys/stat.h>
#include <sstream>
#include <sys/stat.h>
/*}}}*/
// Sources Index /*{{{*/
/*}}}*/
// Sources Index /*{{{*/
#include <apti18n.h>
/*}}}*/
#include <apti18n.h>
/*}}}*/
+extern char **environ;
+
using namespace std;
APT_PURE static string AptHistoryRequestingUser() /*{{{*/
using namespace std;
APT_PURE static string AptHistoryRequestingUser() /*{{{*/
#include <apt-pkg/fileutl.h>
#include <apt-pkg/pkgsystem.h>
#include <apt-pkg/fileutl.h>
#include <apt-pkg/pkgsystem.h>
/*}}}*/
// ListParser::edspListParser - Constructor /*{{{*/
/*}}}*/
// ListParser::edspListParser - Constructor /*{{{*/
#include <apt-private/private-show.h>
#include <stdio.h>
#include <apt-private/private-show.h>
#include <stdio.h>
#include <ostream>
#include <string>
#include <ostream>
#include <string>
#include <string>
#include <vector>
#include <string>
#include <vector>
#include <stdlib.h>
#include <apti18n.h>
#include <stdlib.h>
#include <apti18n.h>
#include <vector>
#include <algorithm>
#include <stdio.h>
#include <vector>
#include <algorithm>
#include <stdio.h>
#include <iostream>
#include <string>
#include <memory>
#include <iostream>
#include <string>
#include <memory>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>