$NetBSD: patch-ag,v 1.3 2003/12/03 12:31:37 cube Exp $

--- src/main.cc.orig	2003-09-09 23:22:55.000000000 +0200
+++ src/main.cc
@@ -51,10 +51,10 @@
 #include <pth.h>
 #endif
 #include NCURSES
-#ifdef HAVE_GETOPT_H
+#ifdef HAVE_GETOPT_LONG_ONLY
 #include <getopt.h>
 #else
-#include "getopt.h"
+#include "../getopt/getopt.h"
 #endif
 #ifdef HAVE_ERRNO_H
 #include <errno.h>
