/*
+ * $Id: atp_rresp.c,v 1.4 2001-06-29 14:14:46 rufustfirefly Exp $
+ *
* Copyright (c) 1990,1991 Regents of The University of Michigan.
* All Rights Reserved.
*
* netatalk@itd.umich.edu
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/time.h>
#include <errno.h>
#include <sys/uio.h>
+#include <sys/socket.h>
#include <netatalk/at.h>
#include <atalk/atp.h>
#ifdef EBUG
#include <stdio.h>
-#endif
+#endif /* EBUG */
#include "atp_internals.h"
#ifdef EBUG
atp_print_bufuse( ah, "atp_rresp" );
-#endif
+#endif /* EBUG */
/* check parameters
*/
if ( atpb->atp_rresiovcnt <= 0 || atpb->atp_rresiovcnt > 8 ) {
len, i );
bprint( (char *)ah->atph_resppkt[ i ]->atpbuf_info.atpbuf_data,
len + ATP_HDRSIZE );
-#endif
+#endif /* EBUG */
memcpy(atpb->atp_rresiov[ i ].iov_base,
ah->atph_resppkt[ i ]->atpbuf_info.atpbuf_data + ATP_HDRSIZE,
len );