]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/netddp/netddp_recvfrom.c
Remove bdb env on exit
[netatalk.git] / libatalk / netddp / netddp_recvfrom.c
index 068590bc52efd395ea67d5c8e5b924b71bcd5512..6e7a942d3b46fc8ce3f44ac8faa9a3bb5b8771b7 100644 (file)
@@ -1,4 +1,6 @@
 /* 
+ * $Id: netddp_recvfrom.c,v 1.5 2003-02-17 02:02:25 srittau Exp $
+ *
  * Copyright (c) 1999 Adrian Sun (asun@zoology.washington.edu)
  * Copyright (c) 1990,1991 Regents of The University of Michigan.
  * All Rights Reserved. See COPYRIGHT.
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
-static int _netddp_recvfrom_dummy;
+#endif /* HAVE_CONFIG_H */
 
 #ifndef NO_DDP
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif /* HAVE_UNISTD_H */
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/uio.h>
 #include <errno.h>
 
 #ifdef MACOSX_SERVER
-#include <at/appletalk.h>
-#include <at/ddp.h>
-#endif
+#include <netat/appletalk.h>
+#include <netat/ddp.h>
+#endif /* MACOSX_SERVER */
 
 #include <netatalk/at.h>
 #include <netatalk/endian.h>
@@ -31,7 +33,7 @@ static int _netddp_recvfrom_dummy;
 
 #ifndef MAX
 #define MAX(a, b)  ((a) < (b) ? (b) : (a))
-#endif
+#endif /* ! MAX */
 
 #ifdef MACOSX_SERVER
 int netddp_recvfrom(int fd, void *buf, int buflen, unsigned int dummy,