summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/netrc.h
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg/contrib/netrc.h')
-rw-r--r--apt-pkg/contrib/netrc.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/apt-pkg/contrib/netrc.h b/apt-pkg/contrib/netrc.h
index 02a5eb09f..5931d4a42 100644
--- a/apt-pkg/contrib/netrc.h
+++ b/apt-pkg/contrib/netrc.h
@@ -14,16 +14,22 @@
#ifndef NETRC_H
#define NETRC_H
+#include <string>
+
+#ifndef APT_8_CLEANER_HEADERS
#include <apt-pkg/strutl.h>
+#endif
#define DOT_CHAR "."
#define DIR_CHAR "/"
+class URI;
+
// Assume: password[0]=0, host[0] != 0.
// If login[0] = 0, search for login and password within a machine section
// in the netrc.
// If login[0] != 0, search for password within machine and login.
int parsenetrc (char *host, char *login, char *password, char *filename);
-void maybe_add_auth (URI &Uri, string NetRCFile);
+void maybe_add_auth (URI &Uri, std::string NetRCFile);
#endif