Make sure we include <sys/socket.h> when checking for socklen_t
[tftp-hpa.git] / tftpd / recvfrom.h
blob35ad05b41c03ef29e8e2568353044c45f813ec42
1 /* ----------------------------------------------------------------------- *
2 *
3 * Copyright 2001-2006 H. Peter Anvin - All Rights Reserved
5 * This program is free software available under the same license
6 * as the "OpenBSD" operating system, distributed at
7 * http://www.openbsd.org/.
9 * ----------------------------------------------------------------------- */
12 * recvfrom.h
14 * Header for recvfrom substitute
18 #include "config.h"
20 int
21 myrecvfrom(int s, void *buf, int len, unsigned int flags,
22 struct sockaddr *from, socklen_t *fromlen,
23 struct sockaddr_in *myaddr);