$NetBSD: patch-ae,v 1.4 2007/12/14 12:46:23 bjs Exp $

--- src/main.cc.orig	2007-12-04 06:12:56.000000000 -0500
+++ src/main.cc
@@ -69,7 +69,13 @@
 #include <fstream>
 extern char* optarg;
 extern int optind, opterr, optopt;
+#if defined(HAVE_NBCOMPAT_H)
+#include <nbcompat/cdefs.h>
+#include <nbcompat/config.h>
+#include <nbcompat/getopt.h>
+#else
 #include <getopt.h>
+#endif
 
 #ifdef ENABLE_METALINK
 # include "Metalink2RequestGroup.h"
