X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ftpd.h;h=3110b10dd853f6fa2cb245a616246534ac2ca240;hb=f0c7394d9bdae7e980847003f2da6dcc3d2ad96c;hp=086df8a50780adc26c5ce6d2a8e0e98fa2abd94b;hpb=1d1dd8f55a8b91e873db2f4255a1f1d9446e1bd0;p=betaftpd diff --git a/ftpd.h b/ftpd.h index 086df8a..3110b10 100644 --- a/ftpd.h +++ b/ftpd.h @@ -15,6 +15,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#ifndef _FTPD_H +#define _FTPD_H 1 + /* * This is the port you want BetaFTPD to listen on. The standard * FTP port is 21 -- if you really want to use BetaFTPD as your @@ -49,6 +52,22 @@ */ #define MAX_BLOCK_SIZE 4096 +#if HAVE_PWD_H +#include +#endif + +#if HAVE_SYS_TYPES_H +#include +#endif + +#if HAVE_NETINET_IN_H +#include +#endif + +#if HAVE_SYS_SOCKET_H +#include +#endif + #if HAVE_LINUX_SENDFILE && !HAVE_MMAP #warning sendfile() without mmap() is not supported -- disabling sendfile() #undef HAVE_LINUX_SENDFILE @@ -158,18 +177,12 @@ void remove_from_linked_list(struct list_element * const elem); struct conn *alloc_new_conn(const int sock); struct ftran *alloc_new_ftran(const int sock, const struct conn * const c); -#if WANT_DCACHE -struct dcache *alloc_new_dcache(); -#endif int add_fd(const int fd, const int events); void del_fd(const int fd); void destroy_conn(struct conn * const c); void destroy_ftran(struct ftran * const f); -#if WANT_DCACHE -void destroy_dcache(struct dcache * const d); -#endif #if HAVE_POLL int process_all_clients(const int num_ac); @@ -188,9 +201,6 @@ RETSIGTYPE handle_alarm(int signum); void accept_new_client(int * const server_sock); void time_out_sockets(); -#if WANT_DCACHE -void time_out_dcache(); -#endif void remove_bytes(struct conn * const c, const int i); void numeric(struct conn * const c, const int numeric, const char * const format, ...); @@ -206,3 +216,4 @@ void dump_file(struct conn * const c, const int num, const char * const filename void list_readmes(struct conn * const c); #endif +#endif