summaryrefslogtreecommitdiff
path: root/methods/ftp.h
diff options
context:
space:
mode:
Diffstat (limited to 'methods/ftp.h')
-rw-r--r--methods/ftp.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/methods/ftp.h b/methods/ftp.h
index 3a482fa42..5b23dba41 100644
--- a/methods/ftp.h
+++ b/methods/ftp.h
@@ -10,8 +10,9 @@
#ifndef APT_FTP_H
#define APT_FTP_H
-#include <apt-pkg/strutl.h>
#include "aptmethod.h"
+#include "connect.h"
+#include <apt-pkg/strutl.h>
#include <sys/socket.h>
#include <sys/types.h>
@@ -22,7 +23,7 @@ class FTPConn
{
char Buffer[1024*10];
unsigned long Len;
- int ServerFd;
+ std::unique_ptr<MethodFd> ServerFd;
int DataFd;
int DataListenFd;
URI ServerName;