$NetBSD: patch-ab,v 1.2 2010/06/19 22:52:24 gschwarz Exp $ --- src/logic.c.orig 2006-05-24 14:05:53.000000000 +0200 +++ src/logic.c 2010-06-20 00:36:47.000000000 +0200 @@ -2,9 +2,17 @@ #include "err.h" #include #include +#if defined(HAVE_NBCOMPAT_H) +#include /* needed for the other headers */ +#include /* needed for the other headers */ +#include +#else #include +#endif #include "defaults.h" +#include "net.h" /* needed for get_sock() */ + int ar7_login(int fd, const char *user, const char *pass) {