pkgsrc-wip/ar7/patches/patch-ab

23 lines
607 B
Plaintext

$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 <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"
+#include "net.h" /* needed for get_sock() */
+
int ar7_login(int fd, const char *user, const char *pass)
{