summaryrefslogtreecommitdiff
path: root/ext/ftp/ftp.c
diff options
context:
space:
mode:
authorThies C. Arntzen <thies@php.net>1999-11-19 18:33:21 +0000
committerThies C. Arntzen <thies@php.net>1999-11-19 18:33:21 +0000
commit3e59135a5c8c7574c14acb0c420fd58546b03e11 (patch)
tree4e6f064a2e3dbbc5e5d308189ad47be8c2e42d33 /ext/ftp/ftp.c
parent1f11e07fc692e64991ffc8a009f2270db56cb246 (diff)
downloadphp-git-3e59135a5c8c7574c14acb0c420fd58546b03e11.tar.gz
<sys/time.h> is needed on linux
Diffstat (limited to 'ext/ftp/ftp.c')
-rw-r--r--ext/ftp/ftp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c
index 71f9960bfd..47131efa31 100644
--- a/ext/ftp/ftp.c
+++ b/ext/ftp/ftp.c
@@ -45,8 +45,12 @@
#include <netinet/in.h>
#include <netdb.h>
#include <errno.h>
-#include "ftp.h"
+#if HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
+
+#include "ftp.h"
/* sends an ftp command, returns true on success, false on error.
* it sends the string "cmd args\r\n" if args is non-null, or