2010-06-20 00:52:24 +02:00
|
|
|
$NetBSD: patch-ab,v 1.2 2010/06/19 22:52:24 gschwarz Exp $
|
2009-11-22 11:26:10 +01:00
|
|
|
|
2010-06-20 00:52:24 +02:00
|
|
|
--- 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 @@
|
2009-11-22 11:26:10 +01:00
|
|
|
#include "err.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
+#if defined(HAVE_NBCOMPAT_H)
|
|
|
|
+#include <nbcompat/config.h> /* needed for the other headers */
|
|
|
|
+#include <nbcompat/cdefs.h> /* needed for the other headers */
|
|
|
|
+#include <nbcompat/getopt.h>
|
|
|
|
+#else
|
|
|
|
#include <getopt.h>
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
#include "defaults.h"
|
2010-06-20 00:52:24 +02:00
|
|
|
+#include "net.h" /* needed for get_sock() */
|
|
|
|
+
|
2009-11-22 11:26:10 +01:00
|
|
|
int ar7_login(int fd, const char *user, const char *pass)
|
2010-06-20 00:52:24 +02:00
|
|
|
{
|
|
|
|
|